[ticket/12692] Cast the ids to int

PHPBB3-12692
This commit is contained in:
Tristan Darricau 2014-06-17 22:17:26 +02:00 committed by Tristan Darricau
parent 6b5fdc730f
commit c96cc2cb05

View file

@ -105,7 +105,7 @@ class generate extends \phpbb\console\command\command
if (create_thumbnail($source, $destination, $row['mimetype']))
{
$thumbnail_created[] = $row['attach_id'];
$thumbnail_created[] = (int) $row['attach_id'];
if ($input->getOption('verbose'))
{
$output->writeln($this->user->lang('THUMBNAIL_GENERATED', $row['real_filename'], $row['physical_filename']));