[Fusionforge-commits] r11812 - branches/Branch_5_1/src/common/search

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Dec 15 15:56:24 CET 2010


Author: lolando
Date: 2010-12-15 15:56:24 +0100 (Wed, 15 Dec 2010)
New Revision: 11812

Modified:
   branches/Branch_5_1/src/common/search/ProjectSearchQuery.class.php
Log:
Fixed SQL query

Modified: branches/Branch_5_1/src/common/search/ProjectSearchQuery.class.php
===================================================================
--- branches/Branch_5_1/src/common/search/ProjectSearchQuery.class.php	2010-12-15 13:52:02 UTC (rev 11811)
+++ branches/Branch_5_1/src/common/search/ProjectSearchQuery.class.php	2010-12-15 14:56:24 UTC (rev 11812)
@@ -81,7 +81,7 @@
 				if (isset ($LUSER)) {
 					$qpa = db_construct_qpa ($qpa,
 								 'OR g.group_id = ANY($1) ',
-								 array ($pids)) ;
+								 array (db_int_array_to_any_clause($pids))) ;
 				}
 				$qpa = db_construct_qpa ($qpa,
 							 ') AND (') ;
@@ -116,7 +116,7 @@
 			if (isset ($LUSER)) {
 				$qpa = db_construct_qpa ($qpa,
 							 'OR g.group_id = ANY($1) ',
-							 array ($pids)) ;
+							 array (db_int_array_to_any_clause($pids))) ;
 			}
 			$qpa = db_construct_qpa ($qpa,
 						 ') AND ((') ;




More information about the Fusionforge-commits mailing list