Skip to content
Snippets Groups Projects
Commit d3c7471e authored by Andreas Gohr's avatar Andreas Gohr
Browse files

check for empty group array in LDAP backend FS#1004

darcs-hash:20070621194636-7ad00-0a02dabd55d9bda3bf07b1eb8bcfdefd832c2df9.gz
parent 2f07f429
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment