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

fix problem when ldap returns no groups FS#2788

parent e7fbe189
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,7 @@ class auth_plugin_authldap extends DokuWiki_Auth_Plugin {
}
// always add the default group to the list of groups
if(!in_array($conf['defaultgroup'], $info['grps'])) {
if(!$info['grps'] or !in_array($conf['defaultgroup'], $info['grps'])) {
$info['grps'][] = $conf['defaultgroup'];
}
return $info;
......
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