From: hickert Date: Wed, 26 May 2010 06:38:10 +0000 (+0000) Subject: Optimized ALC validation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31581360bc132eabd0caffa6f03ccfafd245aa0f;p=gosa.git Optimized ALC validation -Do not check for class '0' it cannot exist. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18699 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index c69ef528e..4d21c9cb3 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -379,7 +379,7 @@ class userinfo trigger_error("Invalid ACL class '".$aclClass."'! ({$object})"); return(""); } - if(isset($aclClass) &&class_available($aclClass)){ + if(isset($aclClass) && $aclClass != '0' && class_available($aclClass)){ $plInfo = call_user_func(array($aclClass, 'plInfo')); if(!empty($attribute) && !isset($plInfo['plProvidedAcls'][$attribute])){ trigger_error("Invalid ACL attribute '".$attribute."'! ({$object})");