From 98d9cd351f255874ad0c92d17c86e61bb76fd8a1 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 28 Mar 2008 06:28:56 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_userinfo.inc | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2