mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-14 04:30:29 +01:00
[ticket/16138] Use same variable for forum_id in one query
PHPBB3-16138
This commit is contained in:
parent
3f518c9263
commit
c925e8ef58
@ -146,7 +146,7 @@ if ($view && !$post_id)
|
||||
WHERE forum_id = ' . $forum_id . "
|
||||
AND topic_moved_id = 0
|
||||
AND topic_last_post_time $sql_condition {$row['topic_last_post_time']}
|
||||
AND " . $phpbb_content_visibility->get_visibility_sql('topic', $row['forum_id']) . "
|
||||
AND " . $phpbb_content_visibility->get_visibility_sql('topic', $forum_id) . "
|
||||
ORDER BY topic_last_post_time $sql_ordering, topic_last_post_id $sql_ordering";
|
||||
$result = $db->sql_query_limit($sql, 1);
|
||||
$row = $db->sql_fetchrow($result);
|
||||
|
Loading…
x
Reference in New Issue
Block a user