aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/download/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 939dbe81f7..170998d5e1 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -369,7 +369,7 @@ else
$extensions = array();
$files_added = 0;
- $forum_id = ($attachment['in_message']) ? false : $row['forum_id'];
+ $forum_id = ($attachment['in_message']) ? false : (int) $row['forum_id'];
$disallowed = array();
foreach ($attachments as $attach)