From 3536a60e1070f9de74f889a482d9071c559be947 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 30 Apr 2006 14:09:13 +0000 Subject: - changed SUPER_MODERATORS to GLOBAL_MODERATORS - do not cache moderators having no allowed auth settings - added fsock method to transfer class (this has been made by wGEric for us) git-svn-id: file:///svn/phpbb/trunk@5870 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_admin.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'phpBB/includes/functions_admin.php') diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 06417d051b..7b3c7e68f1 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -1812,6 +1812,22 @@ function cache_moderators() { foreach ($forum_id_ary as $forum_id => $auth_ary) { + $flag = false; + foreach ($auth_ary as $auth_option => $setting) + { + // Make sure at least one ACL_YES option is set... + if ($setting == ACL_YES) + { + $flag = true; + break; + } + } + + if (!$flag) + { + continue; + } + $sql_ary[] = array( 'forum_id' => $forum_id, 'user_id' => 0, -- cgit v1.2.1