Code

Fixed login errors when skipping self
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Jun 2008 07:54:25 +0000 (07:54 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Jun 2008 07:54:25 +0000 (07:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11463 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userinfo.inc

index 65cdfdfd9ff0c606b93412305d910ce55f3b4350..4045821ba85e0d5311ce31f6360678db2e522c6c 100644 (file)
@@ -475,9 +475,8 @@ class userinfo
         $found = FALSE;
         foreach($info['acl'] as $cat => $data){
 
-          /* Skip self acls?
-           */
-          if($skip_self_acls && preg_match("//s",$data['0'])) continue;
+          /* Skip self acls? */
+          if($skip_self_acls && isset($data['0']) && preg_match("//s",$data['0'])) continue;
 
           if(is_array($module)){
             foreach($module as $mod){