[Fusionforge-commits] r13518 - branches/Branch_5_1/src/common/include

Roland Mas lolando at fusionforge.org
Fri Jun 17 14:42:14 CEST 2011


Author: lolando
Date: 2011-06-17 14:42:14 +0200 (Fri, 17 Jun 2011)
New Revision: 13518

Modified:
   branches/Branch_5_1/src/common/include/RBAC.php
Log:
Fixed SQL query

Modified: branches/Branch_5_1/src/common/include/RBAC.php
===================================================================
--- branches/Branch_5_1/src/common/include/RBAC.php	2011-06-17 12:40:52 UTC (rev 13517)
+++ branches/Branch_5_1/src/common/include/RBAC.php	2011-06-17 12:42:14 UTC (rev 13518)
@@ -1402,8 +1402,8 @@
 
 	public function hasUser($user) {
 		$res = db_query_params ('SELECT user_id FROM pfo_user_role WHERE user_id=$1 AND role_id=$2',
-					array (db_int_array_to_any_clause($user->getID()), $this->getID())) ;
-		if ($res && $db_numrows($res)) {
+					array ($user->getID(), $this->getID())) ;
+		if ($res && db_numrows($res)) {
 			return true ;
 		} else {
 			return false ;




More information about the Fusionforge-commits mailing list