Code

Don't do acl stuff if there's no plinfo
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Feb 2010 15:13:43 +0000 (15:13 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Feb 2010 15:13:43 +0000 (15:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15635 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_plugin.inc

index 6bef2744e5f3902ae0f940e7667516d17822b4f0..4e5f5656b7e4e61be4fd64a570695eb043bfc111 100644 (file)
@@ -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 */