[evolvis-commits] r16849: Fixed SQL query

mirabilos at evolvis.org mirabilos at evolvis.org
Tue Mar 1 01:43:48 CET 2011


Author: mirabilos
Date: 2011-03-01 01:43:48 +0100 (Tue, 01 Mar 2011)
New Revision: 16849

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/search/ProjectSearchQuery.class.php
Log:
Fixed SQL query

Modified: trunk/gforge_base/evolvisforge-5.1/src/common/search/ProjectSearchQuery.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/search/ProjectSearchQuery.class.php	2011-03-01 00:43:46 UTC (rev 16848)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/search/ProjectSearchQuery.class.php	2011-03-01 00:43:48 UTC (rev 16849)
@@ -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 evolvis-commits mailing list