diff options
-rw-r--r-- | inc/auth/ldap.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth/ldap.class.php b/inc/auth/ldap.class.php index 765ed7c72..9fcdc171f 100644 --- a/inc/auth/ldap.class.php +++ b/inc/auth/ldap.class.php @@ -192,7 +192,7 @@ class auth_ldap extends auth_basic { if(is_array($key)) { // use regexp to clean up user_result list($key, $regexp) = each($key); - foreach($user_result[$key] as $grp){ + if($user_result[$key]) foreach($user_result[$key] as $grp){ if (preg_match($regexp,$grp,$match)) { if($localkey == 'grps') { $info[$localkey][] = $match[1]; |