diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-06-07 13:50:46 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-06-07 13:50:46 +0200 |
commit | 04e4890db370bdb57201f76581fe3dc0a3adb614 (patch) | |
tree | 7e00365e9bbcbded05f9338bb195a15008d2c104 /lib/plugins/authldap | |
parent | e7fbe18945e8d94fd400fd66f36e67174951f290 (diff) | |
download | rpg-04e4890db370bdb57201f76581fe3dc0a3adb614.tar.gz rpg-04e4890db370bdb57201f76581fe3dc0a3adb614.tar.bz2 |
fix problem when ldap returns no groups FS#2788
Diffstat (limited to 'lib/plugins/authldap')
-rw-r--r-- | lib/plugins/authldap/auth.php | 2 |
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; |