LSsession :: canAccess() : Fixed notice PHP

This commit is contained in:
Benjamin Renard 2010-11-16 19:32:10 +01:00
parent d432819ed5
commit 0d440bffc3

View file

@ -1796,7 +1796,7 @@ class LSsession {
if (($right=='r')||($right=='w')) {
foreach($whoami as $who) {
foreach ($attrs_conf as $attr_name => $attr_config) {
if ($attr_config['rights'][$who]==$right) {
if (isset($attr_config['rights'][$who]) && $attr_config['rights'][$who]==$right) {
return true;
}
}
@ -1805,7 +1805,7 @@ class LSsession {
else {
foreach($whoami as $who) {
foreach ($attrs_conf as $attr_name => $attr_config) {
if ( ($attr_config['rights'][$who]=='r') || ($attr_config['rights'][$who]=='w') ) {
if ( (isset($attr_config['rights'][$who])) && ( ($attr_config['rights'][$who]=='r') || ($attr_config['rights'][$who]=='w') ) ) {
return true;
}
}