[Fusionforge-commits] r19387 - trunk/src/www/softwaremap

Marc-Etienne VARGENAU vargenau at fusionforge.org
Wed Mar 5 18:25:20 CET 2014


Author: vargenau
Date: 2014-03-05 18:25:20 +0100 (Wed, 05 Mar 2014)
New Revision: 19387

Modified:
   trunk/src/www/softwaremap/tag_cloud.php
Log:
Compare tags in a case-insensitive way

Modified: trunk/src/www/softwaremap/tag_cloud.php
===================================================================
--- trunk/src/www/softwaremap/tag_cloud.php	2014-03-05 17:24:19 UTC (rev 19386)
+++ trunk/src/www/softwaremap/tag_cloud.php	2014-03-05 17:25:20 UTC (rev 19387)
@@ -61,11 +61,11 @@
 	$res_grp = db_query_params('
 		SELECT groups.group_id, group_name, unix_group_name, short_description, register_time
 		FROM project_tags, groups
-		WHERE name = $1
+		WHERE LOWER(name) = $1
 		AND project_tags.group_id = groups.group_id
 		AND status = $2 AND type_id=1 AND register_time > 0
 		ORDER BY group_name ASC',
-		array($selected_tag, 'A'), $TROVE_HARDQUERYLIMIT);
+		array(strtolower($selected_tag), 'A'), $TROVE_HARDQUERYLIMIT);
 	$projects = array();
 	$project_ids = array();
 	while ($row_grp = db_fetch_array($res_grp)) {




More information about the Fusionforge-commits mailing list