1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-13 20:32:11 +02:00

[ticket/15670] Fix SQL error when !f_list_topics and f_read

PHPBB3-15670
This commit is contained in:
Jakub Senko 2018-06-18 18:38:53 +02:00
parent 02cbb864a5
commit 6deae170bd
No known key found for this signature in database
GPG Key ID: 6A7C328CD66EC21E

View File

@ -506,7 +506,7 @@ if ($forum_data['forum_type'] == FORUM_POST)
'WHERE' => '(t.forum_id = ' . $forum_id . '
AND t.topic_type = ' . POST_ANNOUNCE . ') OR
(' . $db->sql_in_set('t.forum_id', $g_forum_ary) . '
(' . $db->sql_in_set('t.forum_id', $g_forum_ary, false, true) . '
AND t.topic_type = ' . POST_GLOBAL . ')',
'ORDER_BY' => 't.topic_time DESC',