mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10636] Resolve variable name ($sql_ary) conflict in cache_moderators().
Regression from 4c77903129
.
PHPBB3-10636
This commit is contained in:
parent
cddd63aae0
commit
6858485964
1 changed files with 2 additions and 2 deletions
|
@ -2330,7 +2330,7 @@ function cache_moderators()
|
|||
$ug_id_ary = array_keys($hold_ary);
|
||||
|
||||
// Remove users who have group memberships with DENY moderator permissions
|
||||
$sql_ary = array(
|
||||
$sql_ary_deny = array(
|
||||
'SELECT' => 'a.forum_id, ug.user_id, g.group_id',
|
||||
|
||||
'FROM' => array(
|
||||
|
@ -2357,7 +2357,7 @@ function cache_moderators()
|
|||
AND ug.user_pending = 0
|
||||
AND o.auth_option " . $db->sql_like_expression('m_' . $db->any_char),
|
||||
);
|
||||
$sql = $db->sql_build_query('SELECT', $sql_ary);
|
||||
$sql = $db->sql_build_query('SELECT', $sql_ary_deny);
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
|
|
Loading…
Add table
Reference in a new issue