From: cajus Date: Wed, 17 Feb 2010 15:13:43 +0000 (+0000) Subject: Don't do acl stuff if there's no plinfo X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b0bc5d85a331b5261d1d193335a5fc488e0a5c8;p=gosa.git 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 --- 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 */