From 31581360bc132eabd0caffa6f03ccfafd245aa0f Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 May 2010 06:38:10 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_userinfo.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})"); -- 2.30.2