From 074cf26b87d427287e6179f51b9e64c2b1e88ac2 Mon Sep 17 00:00:00 2001 From: andi Date: Sat, 26 Feb 2005 14:33:45 +0100 Subject: auth fix darcs-hash:20050226133345-9977f-1e13c0125ea5d62af4235ef043a644acbede67dc.gz --- inc/auth.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/auth.php b/inc/auth.php index 1e84d6552..fdd897423 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -217,6 +217,9 @@ function auth_aclcheck($id,$user,$groups){ //if user is superuser return 255 (acl_admin) if($conf['superuser'] == $user) { return AUTH_ADMIN; } + //make sure groups is an array + if(!is_array($groups)) $groups = array(); + //prepend groups with @ for($i=0; $i