From: hickert Date: Mon, 26 May 2008 09:03:53 +0000 (+0000) Subject: Updated ACL check. - Very strange, see diff. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bbfedb768a4941aa0678ef2c95ce5d6afc078b55;p=gosa.git Updated ACL check. - Very strange, see diff. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10998 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index a2e5eb632..f244f57e1 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -313,7 +313,11 @@ class userinfo /* Assemble string */ $ret= ""; foreach ($acl as $key => $value){ - if ($value != ""){ + /* Why doesn't + if($value !=""){ + work here??? It skips 0 too. + */ + if (!preg_match("/^$/",$value)){ $ret.= $key; } }