From: hickert Date: Mon, 9 Mar 2009 14:46:58 +0000 (+0000) Subject: Applied patch; X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=71920fce29d168ff2b748efc21fae8b87387423e;p=gosa.git Applied patch; Author: psc Date: 2009-03-06 14:04:49 +0100 (Fri, 06 Mar 2009) New Revision: 13502 Modified: branches/2.6-lhm/trunk/gosa-core/include/class_userinfo.inc Log: Check weither is defined, before using it (Fixes Trac #2193) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13518 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 992f3da00..6be2be400 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -214,7 +214,7 @@ 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")){ + if(isset($object_acls[0]) && strpos($object_acls[0],"s")){ unset($without_self_acl[$sdn][$dn][$acl_id]['acl'][$object]); } }