From 71920fce29d168ff2b748efc21fae8b87387423e Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 9 Mar 2009 14:46:58 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_userinfo.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } } -- 2.30.2