diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-04-30 14:09:13 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-04-30 14:09:13 +0000 |
commit | 3536a60e1070f9de74f889a482d9071c559be947 (patch) | |
tree | 9d60a15fb1b75f2d9af4407937420723a19b0550 /phpBB/includes/functions_admin.php | |
parent | e69278b5cdec1f10629ad5f0448ab0f5a5c2e2cb (diff) | |
download | forums-3536a60e1070f9de74f889a482d9071c559be947.tar forums-3536a60e1070f9de74f889a482d9071c559be947.tar.gz forums-3536a60e1070f9de74f889a482d9071c559be947.tar.bz2 forums-3536a60e1070f9de74f889a482d9071c559be947.tar.xz forums-3536a60e1070f9de74f889a482d9071c559be947.zip |
- 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
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 16 |
1 files changed, 16 insertions, 0 deletions
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, |