From: hickert Date: Fri, 28 Mar 2008 06:28:56 +0000 (+0000) Subject: Added warning to get_category_permissions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=98d9cd351f255874ad0c92d17c86e61bb76fd8a1;p=gosa.git Added warning to get_category_permissions -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 --- diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 992b15308..bba185e0a 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -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);