1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-14 19:45:21 +02:00

[ticket/13713] Cast topic_id to integer in the topic source

PHPBB3-13713
This commit is contained in:
lavigor 2018-09-15 12:07:30 +03:00 committed by Marc Alexander
parent 1f8e91cf11
commit 149d0aa5d3
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -60,7 +60,7 @@ class topic extends base_user
'ON' => 't.topic_id = p.topic_id'
],
],
'WHERE' => 'p.topic_id = ' . $topic_id . '
'WHERE' => 'p.topic_id = ' . (int) $topic_id . '
AND ' . $this->db->sql_in_set('u.user_type', [USER_NORMAL, USER_FOUNDER]),
'ORDER_BY' => 'p.post_time DESC'
]);