From bbfedb768a4941aa0678ef2c95ce5d6afc078b55 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 May 2008 09:03:53 +0000 Subject: [PATCH] Updated ACL check. - Very strange, see diff. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10998 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userinfo.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } } -- 2.30.2