aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/phpbb/console/command/thumbnail/delete.php2
-rw-r--r--phpBB/phpbb/console/command/thumbnail/generate.php2
2 files changed, 2 insertions, 2 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
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