mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +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)
|
else if ($post_id)
|
||||||
{
|
{
|
||||||
// Post id or private message id (multiple attachments)
|
// 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)
|
else if ($topic_id)
|
||||||
{
|
{
|
||||||
// Topic id (multiple attachments)
|
// Topic id (multiple attachments)
|
||||||
$sql_where = "topic_id = $topic_id";
|
$sql_where = "topic_id = $topic_id AND is_orphan = 0";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user