Code

Updated class_userinfo, ACL parsing. Undefined Index 606
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Feb 2009 06:52:26 +0000 (06:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Feb 2009 06:52:26 +0000 (06:52 +0000)
-Fixed undefined Index warning, when logging in

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13375 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userinfo.inc

index 912bb29a093b6be9fbadda5f0ff34196a1c82e1a..c410e70db7b47e410a67239eabdbcacc5f2fd813 100644 (file)
@@ -602,6 +602,11 @@ class userinfo
 
     foreach(str_split($newACL) as $char){
 
+      /* Skip "self" ACLs without combination of rwcdm, they have no effect.
+         -self flag without read/write/create/...
+       */
+      if(empty($char)) continue;
+
       /* Skip permanent and subtree entries */
       if (preg_match('/[sp]/', $acl[$char])){
         continue;