[Fusionforge-commits] r10721 - in trunk/src: common/include www/docman

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Sun Sep 26 18:37:31 CEST 2010


Author: nerville
Date: 2010-09-26 18:37:31 +0200 (Sun, 26 Sep 2010)
New Revision: 10721

Modified:
   trunk/src/common/include/RBACEngine.class.php
   trunk/src/common/include/session.php
   trunk/src/common/include/utils.php
   trunk/src/www/docman/index.php
Log:
minor fixes : mostly php warning

Modified: trunk/src/common/include/RBACEngine.class.php
===================================================================
--- trunk/src/common/include/RBACEngine.class.php	2010-09-26 16:36:57 UTC (rev 10720)
+++ trunk/src/common/include/RBACEngine.class.php	2010-09-26 16:37:31 UTC (rev 10721)
@@ -80,7 +80,7 @@
 		if (USE_PFO_RBAC) {
 			$res = db_query_params ('SELECT role_id FROM pfo_role WHERE home_group_id IS NULL',
 						array ());
-			while ($arr =& db_fetch_array($res)) {
+			while ($arr = db_fetch_array($res)) {
 				$this->_cached_global_roles[] = $this->getRoleById ($arr['role_id']) ;
 			}
 		}
@@ -98,7 +98,7 @@
 		if (USE_PFO_RBAC) {
 			$res = db_query_params ('SELECT role_id FROM pfo_role WHERE is_public=$1',
 						array ('true'));
-			while ($arr =& db_fetch_array($res)) {
+			while ($arr = db_fetch_array($res)) {
 				$this->_cached_public_roles[] = $this->getRoleById ($arr['role_id']) ;
 			}
 		}

Modified: trunk/src/common/include/session.php
===================================================================
--- trunk/src/common/include/session.php	2010-09-26 16:36:57 UTC (rev 10720)
+++ trunk/src/common/include/session.php	2010-09-26 16:37:31 UTC (rev 10721)
@@ -25,6 +25,7 @@
  */
 
 require_once $gfcommon.'include/account.php';
+require_once $gfcommon.'include/utils.php';
 require_once $gfcommon.'include/escapingUtils.php';
 
 /**

Modified: trunk/src/common/include/utils.php
===================================================================
--- trunk/src/common/include/utils.php	2010-09-26 16:36:57 UTC (rev 10720)
+++ trunk/src/common/include/utils.php	2010-09-26 16:37:31 UTC (rev 10721)
@@ -3,7 +3,7 @@
  * FusionForge miscellaneous utils
  *
  * Copyright 1999-2001, VA Linux Systems, Inc.
- * Copyright 2009-2010, Roland Mas, Franck Villaume
+ * Copyright 2009-2010, Roland Mas, Franck Villaume - Capgemini
  *
  * This file is part of FusionForge.
  *

Modified: trunk/src/www/docman/index.php
===================================================================
--- trunk/src/www/docman/index.php	2010-09-26 16:36:57 UTC (rev 10720)
+++ trunk/src/www/docman/index.php	2010-09-26 16:37:31 UTC (rev 10721)
@@ -53,7 +53,7 @@
 
 /* is this group using docman ? */
 if (!$g->usesDocman())
-	exit_disabled('home');
+	exit_disabled();
 
 if ($g->isError())
 	exit_error($g->getErrorMessage(),'docman');




More information about the Fusionforge-commits mailing list