From 9b0bc5d85a331b5261d1d193335a5fc488e0a5c8 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 17 Feb 2010 15:13:43 +0000 Subject: [PATCH] Don't do acl stuff if there's no plinfo git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15635 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_plugin.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 6bef2744e..4e5f5656b 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -148,11 +148,13 @@ class plugin // Ensure that we've a valid acl_category set. if(empty($this->acl_category)){ $tmp = $this->plInfo(); - $c = key($tmp['plCategory']); - if(is_numeric($c)){ - $c = $tmp['plCategory'][0]; + if (isset($tmp['plCategory'])) { + $c = key($tmp['plCategory']); + if(is_numeric($c)){ + $c = $tmp['plCategory'][0]; + } + $this->acl_category = $c."/"; } - $this->acl_category = $c."/"; } /* Handle new accounts, don't read information from LDAP */ -- 2.30.2