[Fusionforge-commits] r8734 - trunk/gforge/www/stats

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sun Feb 7 19:06:32 CET 2010


Author: aljeux
Date: 2010-02-07 19:06:32 +0100 (Sun, 07 Feb 2010)
New Revision: 8734

Modified:
   trunk/gforge/www/stats/site_stats_utils.php
Log:
Fix PROJECT STATS broken SQL query

Modified: trunk/gforge/www/stats/site_stats_utils.php
===================================================================
--- trunk/gforge/www/stats/site_stats_utils.php	2010-02-07 18:06:26 UTC (rev 8733)
+++ trunk/gforge/www/stats/site_stats_utils.php	2010-02-07 18:06:32 UTC (rev 8734)
@@ -169,10 +169,9 @@
 	global $allowed_orderby_vals ;
 
 	if (!$orderby) {
-		$order_clause = 'ORDER BY group_name ASC' ;
+		$order_clause = 'group_name ASC' ;
 	} else {
-		$order_clause = 'ORDER BY ' ;
-		$order_clause .= util_ensure_value_in_set ($orderby,
+		$order_clause = util_ensure_value_in_set ($orderby,
 							   $allowed_orderby_vals) ;
 		$order_clause .= ' DESC, group_name ASC';
 	}




More information about the Fusionforge-commits mailing list