1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[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

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