Code

Updated ACL check. - Very strange, see diff.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 May 2008 09:03:53 +0000 (09:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 May 2008 09:03:53 +0000 (09:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10998 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userinfo.inc

index a2e5eb63239b1c459351ccff254ad60d7c4eb3ca..f244f57e153365e52e3625ed0e61e3f5f362aa80 100644 (file)
@@ -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;
       }
     }