[Fusionforge-commits] r10715 - in trunk/src: common/include plugins/projects_hierarchy/common

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Sun Sep 26 16:41:42 CEST 2010


Author: nerville
Date: 2010-09-26 16:41:42 +0200 (Sun, 26 Sep 2010)
New Revision: 10715

Modified:
   trunk/src/common/include/RBACEngine.class.php
   trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php
Log:
php warnings

Modified: trunk/src/common/include/RBACEngine.class.php
===================================================================
--- trunk/src/common/include/RBACEngine.class.php	2010-09-26 14:36:28 UTC (rev 10714)
+++ trunk/src/common/include/RBACEngine.class.php	2010-09-26 14:41:42 UTC (rev 10715)
@@ -121,13 +121,13 @@
 		if (USE_PFO_RBAC) {
 			$res = db_query_params ('SELECT role_id FROM pfo_user_role WHERE user_id=$1',
 						array ($user->getID()));
-			while ($arr =& db_fetch_array($res)) {
+			while ($arr = db_fetch_array($res)) {
 				$result[] = $this->getRoleById ($arr['role_id']) ;
 			}
 		} else {
 			$res = db_query_params ('SELECT role_id FROM user_group WHERE user_id=$1',
 						array ($user->getID()));
-			while ($arr =& db_fetch_array($res)) {
+			while ($arr = db_fetch_array($res)) {
 				$result[] = $this->getRoleById ($arr['role_id']) ;
 			}
 		}

Modified: trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php
===================================================================
--- trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php	2010-09-26 14:36:28 UTC (rev 10714)
+++ trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php	2010-09-26 14:41:42 UTC (rev 10715)
@@ -1,23 +1,25 @@
 <?php
-
 /**
  * projects_hierarchyPlugin Class
  *
+ * Copyright 2006 (c) Fabien Regnier - Sogeti
+ * Copyright 2010 (c) Franck Villaume - Capgemini
+ * http://fusionforge.org
  *
- * This file is part of GForge.
+ * This file is part of FusionForge.
  *
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
  *
- * GForge is distributed in the hope that it will be useful,
+ * FusionForge is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with GForge; if not, write to the Free Software
+ * along with FusionForge; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
@@ -106,7 +108,6 @@
 			// this displays the link in the user's profile page to it's personal projects_hierarchy (if you want other sto access it, youll have to change the permissions in the index.php
 			$userid = $params['user_id'];
 			$user = user_get_object($userid);
-			$text = $params['text'];
 			//check if the user has the plugin activated
 			if ($user->usesPlugin($this->name)) {
 				echo '	<p>' ;




More information about the Fusionforge-commits mailing list