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