[Fusionforge-commits] r10580 - trunk/src/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Mon Sep 20 23:14:42 CEST 2010


Author: lolando
Date: 2010-09-20 23:14:42 +0200 (Mon, 20 Sep 2010)
New Revision: 10580

Modified:
   trunk/src/common/include/Role.class.php
Log:
PHP notice

Modified: trunk/src/common/include/Role.class.php
===================================================================
--- trunk/src/common/include/Role.class.php	2010-09-20 21:06:29 UTC (rev 10579)
+++ trunk/src/common/include/Role.class.php	2010-09-20 21:14:42 UTC (rev 10580)
@@ -370,7 +370,8 @@
 	}
 
 	function normalizePermsForSection (&$new_pa, $section, $refid) {
-		if (array_key_exists ($section, $this->perms_array)) {
+		if (array_key_exists ($section, $this->perms_array)
+		    && array_key_exists ($refid, $this->perms_array[$section])) {
 			$new_pa[$section][$refid] = $this->perms_array[$section][$refid] ;
 		} elseif (array_key_exists ($this->data_array['role_name'], $this->defaults)
 			  && array_key_exists ($section, $this->defaults[$this->data_array['role_name']])) {




More information about the Fusionforge-commits mailing list