diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-06-13 21:43:44 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-07-09 09:21:50 +0200 |
commit | 3a0883e93ebd542c1cf67203b4c17456d8308426 (patch) | |
tree | 84e3e1f7b0f661cb4e5579602d430f2fe4bb45d1 /phpBB/phpbb/console | |
parent | 074dfdbdfea364cc2796d69c4d27535ab19fdac7 (diff) | |
download | forums-3a0883e93ebd542c1cf67203b4c17456d8308426.tar forums-3a0883e93ebd542c1cf67203b4c17456d8308426.tar.gz forums-3a0883e93ebd542c1cf67203b4c17456d8308426.tar.bz2 forums-3a0883e93ebd542c1cf67203b4c17456d8308426.tar.xz forums-3a0883e93ebd542c1cf67203b4c17456d8308426.zip |
[ticket/12692] Use !empty() instead of sizeof()
PHPBB3-12692
Diffstat (limited to 'phpBB/phpbb/console')
-rw-r--r-- | phpBB/phpbb/console/command/thumbnail/delete.php | 2 | ||||
-rw-r--r-- | phpBB/phpbb/console/command/thumbnail/generate.php | 2 |
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 |