[Fusionforge-commits] r10504 - branches/Branch_5_0/gforge/www/snippet

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Sep 16 16:26:54 CEST 2010


Author: lolando
Date: 2010-09-16 16:26:54 +0200 (Thu, 16 Sep 2010)
New Revision: 10504

Modified:
   branches/Branch_5_0/gforge/www/snippet/browse.php
Log:
Fixed SQL query in snippet browsing

Modified: branches/Branch_5_0/gforge/www/snippet/browse.php
===================================================================
--- branches/Branch_5_0/gforge/www/snippet/browse.php	2010-09-16 13:42:21 UTC (rev 10503)
+++ branches/Branch_5_0/gforge/www/snippet/browse.php	2010-09-16 14:26:54 UTC (rev 10504)
@@ -35,8 +35,8 @@
 
 $by = getStringFromRequest('by');
 
-$qpa = db_construct_qpa (false, 'SELECT users.realname,users.user_name,snippet.description,snippet.snippet_id,snippet.name FROM snippet,users WHERE users.user_id=snippet.created_by') ;
-$qpa2 = db_construct_qpa (false, 'SELECT users.realname,users.user_name,users.user_id,snippet_package.description,snippet_package.snippet_package_id,snippet_package.name FROM snippet_package,users WHERE users.user_id=snippet_package.created_by') ;
+$qpa = db_construct_qpa (false, 'SELECT users.realname,users.user_name,snippet.description,snippet.snippet_id,snippet.name FROM snippet,users WHERE users.user_id=snippet.created_by ') ;
+$qpa2 = db_construct_qpa (false, 'SELECT users.realname,users.user_name,users.user_id,snippet_package.description,snippet_package.snippet_package_id,snippet_package.name FROM snippet_package,users WHERE users.user_id=snippet_package.created_by ') ;
 
 if ($by=='lang') {
 	$lang = getStringFromRequest('lang');




More information about the Fusionforge-commits mailing list