From c179167850b6c44679deb9edd4a816243addb52d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 3 Dec 2007 21:15:32 +0100 Subject: 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 --- lib/plugins/acl/admin.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/plugins') 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 -- cgit v1.2.3