From 4ce6560504d59db2421aa3a1393c1a5747df8275 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 16 Nov 2010 19:34:04 +0100 Subject: [PATCH] LSsession :: relationCanAccess() : Fixed notice PHP --- public_html/includes/class/class.LSsession.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/includes/class/class.LSsession.php b/public_html/includes/class/class.LSsession.php index d0a10bb8..e9e3da27 100644 --- a/public_html/includes/class/class.LSsession.php +++ b/public_html/includes/class/class.LSsession.php @@ -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; } }