mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[feature/attach-dl] Do not fetch orphaned attachments when downloading archives
PHPBB3-11042
This commit is contained in:
parent
0226bc43dd
commit
93f630e9b1
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user