From 0d440bffc3ea3f806d00620bc737b26ed11a0c85 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 16 Nov 2010 19:32:10 +0100 Subject: [PATCH] LSsession :: canAccess() : 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 4b90cc78..d0a10bb8 100644 --- a/public_html/includes/class/class.LSsession.php +++ b/public_html/includes/class/class.LSsession.php @@ -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; } }