mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-15 20:17:36 +02:00
[ticket/13713] Cast topic_id to integer in the topic source
PHPBB3-13713
This commit is contained in:
parent
1f8e91cf11
commit
149d0aa5d3
@ -60,7 +60,7 @@ class topic extends base_user
|
|||||||
'ON' => 't.topic_id = p.topic_id'
|
'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]),
|
AND ' . $this->db->sql_in_set('u.user_type', [USER_NORMAL, USER_FOUNDER]),
|
||||||
'ORDER_BY' => 'p.post_time DESC'
|
'ORDER_BY' => 'p.post_time DESC'
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user