mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/12692] Use !empty() instead of sizeof()
PHPBB3-12692
This commit is contained in:
committed by
Tristan Darricau
parent
074dfdbdfe
commit
3a0883e93e
@@ -100,7 +100,7 @@ class delete extends \phpbb\console\command\command
|
|||||||
}
|
}
|
||||||
$this->db->sql_freeresult($result);
|
$this->db->sql_freeresult($result);
|
||||||
|
|
||||||
if (sizeof($thumbnail_deleted))
|
if (!empty($thumbnail_deleted))
|
||||||
{
|
{
|
||||||
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '
|
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '
|
||||||
SET thumbnail = 0
|
SET thumbnail = 0
|
||||||
|
@@ -122,7 +122,7 @@ class generate extends \phpbb\console\command\command
|
|||||||
}
|
}
|
||||||
$this->db->sql_freeresult($result);
|
$this->db->sql_freeresult($result);
|
||||||
|
|
||||||
if (sizeof($thumbnail_created))
|
if (!empty($thumbnail_created))
|
||||||
{
|
{
|
||||||
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '
|
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '
|
||||||
SET thumbnail = 1
|
SET thumbnail = 1
|
||||||
|
Reference in New Issue
Block a user