From: hickert Date: Mon, 22 Nov 2010 09:53:54 +0000 (+0000) Subject: Avoid error while rendering ACL dialogs for plugins without 'plProviedeAcls' entry. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bac87494549ea952045e2e1cc2b52f60aeea2c6c;p=gosa.git Avoid error while rendering ACL dialogs for plugins without 'plProviedeAcls' entry. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20315 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_acl.inc b/gosa-core/include/class_acl.inc index 296c2d1e4..ab7d0e76b 100644 --- a/gosa-core/include/class_acl.inc +++ b/gosa-core/include/class_acl.inc @@ -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']))) {