summaryrefslogtreecommitdiff
path: root/lib/plugins/authldap/auth.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-06-07 13:50:46 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-06-07 13:50:46 +0200
commit04e4890db370bdb57201f76581fe3dc0a3adb614 (patch)
tree7e00365e9bbcbded05f9338bb195a15008d2c104 /lib/plugins/authldap/auth.php
parente7fbe18945e8d94fd400fd66f36e67174951f290 (diff)
downloadrpg-04e4890db370bdb57201f76581fe3dc0a3adb614.tar.gz
rpg-04e4890db370bdb57201f76581fe3dc0a3adb614.tar.bz2
fix problem when ldap returns no groups FS#2788
Diffstat (limited to 'lib/plugins/authldap/auth.php')
-rw-r--r--lib/plugins/authldap/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/authldap/auth.php b/lib/plugins/authldap/auth.php
index e43c3f828..6a967a6d4 100644
--- a/lib/plugins/authldap/auth.php
+++ b/lib/plugins/authldap/auth.php
@@ -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;