mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/attach-dl] Do not fetch orphaned attachments when downloading archives
PHPBB3-11042
This commit is contained in:
parent
0226bc43dd
commit
93f630e9b1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue