[ticket/12692] Use !empty() instead of sizeof()

PHPBB3-12692
This commit is contained in:
Tristan Darricau 2014-06-13 21:43:44 +02:00 committed by Tristan Darricau
parent 074dfdbdfe
commit 3a0883e93e
2 changed files with 2 additions and 2 deletions

View file

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

View file

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