aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command/thumbnail/generate.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/console/command/thumbnail/generate.php')
-rw-r--r--phpBB/phpbb/console/command/thumbnail/generate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/console/command/thumbnail/generate.php b/phpBB/phpbb/console/command/thumbnail/generate.php
index bbe6677650..ac9d18d933 100644
--- a/phpBB/phpbb/console/command/thumbnail/generate.php
+++ b/phpBB/phpbb/console/command/thumbnail/generate.php
@@ -122,7 +122,7 @@ class generate extends \phpbb\console\command\command
}
$this->db->sql_freeresult($result);
- if (sizeof($thumbnail_created))
+ if (!empty($thumbnail_created))
{
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '
SET thumbnail = 1