aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-10-12 21:56:59 +0200
committerMarc Alexander <admin@m-a-styles.de>2017-10-12 21:56:59 +0200
commitf57e3778470ad7df2e69b839fd329e53eb524481 (patch)
tree1721aecef2317a93a3eb71f83f0ddb2b67ec11c3 /phpBB/phpbb/install
parentf8f985c099225700a888a91c34f0481910e08378 (diff)
downloadforums-f57e3778470ad7df2e69b839fd329e53eb524481.tar
forums-f57e3778470ad7df2e69b839fd329e53eb524481.tar.gz
forums-f57e3778470ad7df2e69b839fd329e53eb524481.tar.bz2
forums-f57e3778470ad7df2e69b839fd329e53eb524481.tar.xz
forums-f57e3778470ad7df2e69b839fd329e53eb524481.zip
[ticket/15353] Use empty where applicable
PHPBB3-15353
Diffstat (limited to 'phpBB/phpbb/install')
-rw-r--r--phpBB/phpbb/install/module/update_filesystem/task/diff_files.php4
-rw-r--r--phpBB/phpbb/install/module/update_filesystem/task/download_updated_files.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/install/module/update_filesystem/task/diff_files.php b/phpBB/phpbb/install/module/update_filesystem/task/diff_files.php
index b15e32cc82..8151a24f2d 100644
--- a/phpBB/phpbb/install/module/update_filesystem/task/diff_files.php
+++ b/phpBB/phpbb/install/module/update_filesystem/task/diff_files.php
@@ -208,7 +208,7 @@ class diff_files extends task_base
foreach ($update_files as $type => $files)
{
- if (count($files) < 1)
+ if (empty($files))
{
unset($update_files[$type]);
}
@@ -226,7 +226,7 @@ class diff_files extends task_base
foreach ($update_files as $type => $files)
{
- if (count($files) < 1)
+ if (empty($files))
{
unset($update_files[$type]);
}
diff --git a/phpBB/phpbb/install/module/update_filesystem/task/download_updated_files.php b/phpBB/phpbb/install/module/update_filesystem/task/download_updated_files.php
index 2fc756c20a..0b83e9a79d 100644
--- a/phpBB/phpbb/install/module/update_filesystem/task/download_updated_files.php
+++ b/phpBB/phpbb/install/module/update_filesystem/task/download_updated_files.php
@@ -101,12 +101,12 @@ class download_updated_files extends task_base
'update_recheck_files_submit' => array(
'label' => 'UPDATE_RECHECK_UPDATE_FILES',
'type' => 'submit',
- 'is_secondary' => count($file_update_info) < 1,
+ 'is_secondary' => empty($file_update_info),
),
'database_update_submit' => array(
'label' => 'UPDATE_CONTINUE_UPDATE_PROCESS',
'type' => 'submit',
- 'disabled' => count($file_update_info) > 0,
+ 'disabled' => !empty($file_update_info),
),
));