mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/attach-dl] Do not fetch orphaned attachments when downloading archives
PHPBB3-11042
This commit is contained in:
@@ -159,12 +159,12 @@ if ($download_id)
|
||||
else if ($post_id)
|
||||
{
|
||||
// Post id or private message id (multiple attachments)
|
||||
$sql_where = "post_msg_id = $post_id";
|
||||
$sql_where = "post_msg_id = $post_id AND is_orphan = 0";
|
||||
}
|
||||
else if ($topic_id)
|
||||
{
|
||||
// Topic id (multiple attachments)
|
||||
$sql_where = "topic_id = $topic_id";
|
||||
$sql_where = "topic_id = $topic_id AND is_orphan = 0";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user