1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-29 02:29:21 +02:00

[feature/attch-dl] $forum_id cast to int

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-15 06:06:28 +08:00
parent 617a5132d8
commit f6e8d938cb

View File

@ -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)