1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[ticket/16793] Fix topic/post visibility - PHP 8

PHPBB3-16793
This commit is contained in:
3D-I
2021-06-10 21:34:07 +02:00
parent c9b32463de
commit c452c83855
3 changed files with 13 additions and 13 deletions

View File

@@ -220,7 +220,7 @@ else
{
phpbb_download_handle_forum_auth($db, $auth, $attachment['topic_id']);
$sql = 'SELECT forum_id, post_visibility
$sql = 'SELECT forum_id, poster_id, post_visibility
FROM ' . POSTS_TABLE . '
WHERE post_id = ' . (int) $attachment['post_msg_id'];
$result = $db->sql_query($sql);