[evolvis-commits] r15837: PHP notice
mirabilos at evolvis.org
mirabilos at evolvis.org
Tue Mar 1 00:32:29 CET 2011
Author: mirabilos
Date: 2011-03-01 00:32:29 +0100 (Tue, 01 Mar 2011)
New Revision: 15837
Modified:
trunk/gforge_base/evolvisforge-5.1/src/common/include/Role.class.php
Log:
PHP notice
Modified: trunk/gforge_base/evolvisforge-5.1/src/common/include/Role.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/include/Role.class.php 2011-02-28 23:32:27 UTC (rev 15836)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/include/Role.class.php 2011-02-28 23:32:29 UTC (rev 15837)
@@ -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 evolvis-commits
mailing list