Code

Fixed warnings in ACL edit dialog.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Jun 2009 09:27:39 +0000 (09:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Jun 2009 09:27:39 +0000 (09:27 +0000)
-Reopen ACL settings whithout saving before, caused some warnings.

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

gosa-core/include/class_acl.inc

index 136a022293f929b03847f7ded12dd7eaae2499bf..150fda298e06e7e6f310c6ada312674ae2578d2a 100644 (file)
@@ -725,8 +725,11 @@ class acl extends plugin
       /* Create sub acl if it does not exist */
       if (!isset($this->aclContents[$key])){
         $this->aclContents[$key]= array();
+      }
+      if(!isset($this->aclContents[$key][0])){
         $this->aclContents[$key][0]= '';
       }
+
       $currentAcl= $this->aclContents[$key];
 
       /* Get the overall plugin acls