aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/download')
-rw-r--r--phpBB/download/file.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 7d39ee4821..155e77501f 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -163,17 +163,17 @@ if (!$config['allow_attachments'] && !$config['allow_pm_attach'])
if ($download_id)
{
// Attachment id (only 1 attachment)
- $sql_where = "attach_id = $download_id";
+ $sql_where = 'attach_id = ' . $download_id;
}
else if ($post_msg_id)
{
// Post id or private message id (multiple attachments)
- $sql_where = "post_msg_id = $post_msg_id AND is_orphan = 0";
+ $sql_where = 'is_orphan = 0 AND post_msg_id = ' . $post_msg_id;
}
else if ($topic_id)
{
// Topic id (multiple attachments)
- $sql_where = "topic_id = $topic_id AND is_orphan = 0";
+ $sql_where = 'is_orphan = 0 AND topic_id = ' . $topic_id;
}
else
{