mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
- 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
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user