From bac87494549ea952045e2e1cc2b52f60aeea2c6c Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 22 Nov 2010 09:53:54 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_acl.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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']))) { -- 2.30.2