LSsession :: relationCanAccess() : Fixed notice PHP

This commit is contained in:
Benjamin Renard 2010-11-16 19:34:04 +01:00
parent 0d440bffc3
commit 4ce6560504

View file

@ -1876,7 +1876,7 @@ class LSsession {
if (($right=='w') || ($right=='r')) {
$r = 'n';
foreach($whoami as $who) {
$nr = $relConf['rights'][$who];
$nr = ((isset($relConf['rights'][$who]))?$relConf['rights'][$who]:'');
if($nr == 'w') {
$r = 'w';
}
@ -1893,7 +1893,7 @@ class LSsession {
}
else {
foreach($whoami as $who) {
if (($relConf['rights'][$who] == 'w') || ($relConf['rights'][$who] == 'r')) {
if ((isset($relConf['rights'][$who])) && ( ($relConf['rights'][$who] == 'w') || ($relConf['rights'][$who] == 'r') ) ) {
return true;
}
}