From: psc Date: Fri, 6 Mar 2009 13:04:49 +0000 (+0000) Subject: Check weither is defined, before using it (Fixes Trac #2193) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee3cbe66a6e7d63c52f6966681c88115354bb851;p=gosa.git Check weither is defined, before using it (Fixes Trac #2193) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13502 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-core/include/class_userinfo.inc b/trunk/gosa-core/include/class_userinfo.inc index 992f3da00..f292c1bb9 100644 --- a/trunk/gosa-core/include/class_userinfo.inc +++ b/trunk/gosa-core/include/class_userinfo.inc @@ -214,8 +214,10 @@ class userinfo /* Remove all acl entries which are especially for the current user (self acl) */ foreach($acl_set['acl'] as $object => $object_acls){ - if(strpos($object_acls[0],"s")){ - unset($without_self_acl[$sdn][$dn][$acl_id]['acl'][$object]); + if(isset($object_acls[0])){ + if(strpos($object_acls[0],"s")){ + unset($without_self_acl[$sdn][$dn][$acl_id]['acl'][$object]); + } } } }