Code

Added warning to get_category_permissions
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Mar 2008 06:28:56 +0000 (06:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Mar 2008 06:28:56 +0000 (06:28 +0000)
-If an invalid category is given now, a PHP Warning will be displayed.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10049 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userinfo.inc

index 992b15308ce5df451e560b678ad886ba307cade5..bba185e0aeb167477fda363619ed6d073c28e0c4 100644 (file)
@@ -184,6 +184,8 @@ class userinfo
       foreach($this->ocMapping[$category] as $oc){
         $acl.= $this->get_permissions($dn, $category."/".$oc);
       }
+    }else{
+      trigger_error("ACL request for an invalid category (".$category.").");
     }
 
     return ($acl);