Code

Check weither is defined, before using it (Fixes Trac #2193)
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Mar 2009 13:04:49 +0000 (13:04 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Mar 2009 13:04:49 +0000 (13:04 +0000)
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

index 992f3da004b79c77a9db20bd85d77452b4b13287..f292c1bb9de613fbcdea0f172d006ab452962922 100644 (file)
@@ -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]);
+                }
               }
             }
           }