Code

Avoid error while rendering ACL dialogs for plugins without 'plProviedeAcls' entry.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Nov 2010 09:53:54 +0000 (09:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Nov 2010 09:53:54 +0000 (09:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20315 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_acl.inc

index 296c2d1e497a69e6f14813b5995ee31d2f03c694..ab7d0e76b3703084a22439f931bee663d9a6b6e7 100644 (file)
@@ -832,7 +832,11 @@ class acl extends plugin
 
             /* Walk through the list of attributes */
             $cnt= 1;
-            $splist= $plist[preg_replace('%^.*/%', '', $key)]['plProvidedAcls'];
+            $splist= array();
+            if(isset($plist[preg_replace('%^.*/%', '', $key)]['plProvidedAcls'])){
+                $splist= $plist[preg_replace('%^.*/%', '', $key)]['plProvidedAcls'];
+            }
+
             if(session::global_get('js')) {
                 if(isset($_SERVER['HTTP_USER_AGENT']) && 
                         (preg_match("/gecko/i",$_SERVER['HTTP_USER_AGENT'])) || (preg_match("/presto/i",$_SERVER['HTTP_USER_AGENT']))) {