mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12692] Use !empty() instead of sizeof()
PHPBB3-12692
This commit is contained in:
parent
074dfdbdfe
commit
3a0883e93e
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue