diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-06-07 13:50:46 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-06-08 13:14:22 +0200 |
commit | adec45598a1b85c313869bff691c36e6ef49cd3e (patch) | |
tree | 6b3b810de74a77a3d0016c8f4f54aa151e49b871 | |
parent | 38e9cd540d5a86ac276fa3d0d98ee0cf50482746 (diff) | |
download | rpg-adec45598a1b85c313869bff691c36e6ef49cd3e.tar.gz rpg-adec45598a1b85c313869bff691c36e6ef49cd3e.tar.bz2 |
fix problem when ldap returns no groups FS#2788
-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; |