diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-12-03 21:15:32 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-12-03 21:15:32 +0100 |
commit | c179167850b6c44679deb9edd4a816243addb52d (patch) | |
tree | a78851d26a4a9eb0db24b96b1f3a7289f8a3724e /lib | |
parent | 1b2abcf93c01d372fac2868ee6930c2326b7c914 (diff) | |
download | rpg-c179167850b6c44679deb9edd4a816243addb52d.tar.gz rpg-c179167850b6c44679deb9edd4a816243addb52d.tar.bz2 |
getUserData should really be implemented always... (FS#1272)
... but with this patch DokuWiki will not break completely when left out for
trustExternal() auth backends
darcs-hash:20071203201532-7ad00-72dbc2d16e4c8c09cca9558286164f4d858c19ce.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plugins/acl/admin.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/plugins/acl/admin.php b/lib/plugins/acl/admin.php index e15d8aa9a..1e44b1ee5 100644 --- a/lib/plugins/acl/admin.php +++ b/lib/plugins/acl/admin.php @@ -348,7 +348,11 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin { }else{ $user = auth_nameencode($who); $info = $auth->getUserData($user); - $groups = $info['groups']; + if($info === false){ + $groups = array(); + }else{ + $groups = $info['groups']; + } } // check the permissions |