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

gracefully handle missing groups in auth:ad

Ignore-this: 98bfcf5fc6f786038562b0abbccbc6a2

darcs-hash:20090902181259-7ad00-5411a421dc8bd0b1fe704df09631648d0009f9cb.gz
parent b166ccbc
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ class auth_ad extends auth_basic {
}
// always add the default group to the list of groups
if(!in_array($conf['defaultgroup'],$info['grps'])){
if(!is_array($info['grps']) || !in_array($conf['defaultgroup'],$info['grps'])){
$info['grps'][] = $conf['defaultgroup'];
}
......
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