Code

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

gosa-core/include/class_userinfo.inc

index f244f57e153365e52e3625ed0e61e3f5f362aa80..5413cd00ab4c5784a61f26274dee4a6653fa83aa 100644 (file)
@@ -313,11 +313,7 @@ class userinfo
     /* Assemble string */
     $ret= "";
     foreach ($acl as $key => $value){
-      /*  Why doesn't 
-            if($value !=""){ 
-          work here??? It skips 0 too.
-       */
-      if (!preg_match("/^$/",$value)){ 
+      if ($value !== ""){
         $ret.= $key;
       }
     }