From ee3cbe66a6e7d63c52f6966681c88115354bb851 Mon Sep 17 00:00:00 2001 From: psc Date: Fri, 6 Mar 2009 13:04:49 +0000 Subject: [PATCH] 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 --- trunk/gosa-core/include/class_userinfo.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]); + } } } } -- 2.30.2