diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-06-21 21:46:36 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-06-21 21:46:36 +0200 |
commit | d3c7471eac59afe6f2924afe5ab45765e4e2d534 (patch) | |
tree | a080cd000d1eaffce462bd56a5816831ce9d96a0 | |
parent | 2f07f429e76a253b463454860697a3a877032b5c (diff) | |
download | rpg-d3c7471eac59afe6f2924afe5ab45765e4e2d534.tar.gz rpg-d3c7471eac59afe6f2924afe5ab45765e4e2d534.tar.bz2 |
check for empty group array in LDAP backend FS#1004
darcs-hash:20070621194636-7ad00-0a02dabd55d9bda3bf07b1eb8bcfdefd832c2df9.gz
-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]; |