mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/15353] Do not use empty to not offer empty archive for download
PHPBB3-15353
This commit is contained in:
parent
39b1420774
commit
57179fbb79
2 changed files with 4 additions and 4 deletions
|
@ -208,7 +208,7 @@ class diff_files extends task_base
|
||||||
|
|
||||||
foreach ($update_files as $type => $files)
|
foreach ($update_files as $type => $files)
|
||||||
{
|
{
|
||||||
if (empty($files))
|
if (count($files) < 1)
|
||||||
{
|
{
|
||||||
unset($update_files[$type]);
|
unset($update_files[$type]);
|
||||||
}
|
}
|
||||||
|
@ -226,7 +226,7 @@ class diff_files extends task_base
|
||||||
|
|
||||||
foreach ($update_files as $type => $files)
|
foreach ($update_files as $type => $files)
|
||||||
{
|
{
|
||||||
if (empty($files))
|
if (count($files) < 1)
|
||||||
{
|
{
|
||||||
unset($update_files[$type]);
|
unset($update_files[$type]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,12 +101,12 @@ class download_updated_files extends task_base
|
||||||
'update_recheck_files_submit' => array(
|
'update_recheck_files_submit' => array(
|
||||||
'label' => 'UPDATE_RECHECK_UPDATE_FILES',
|
'label' => 'UPDATE_RECHECK_UPDATE_FILES',
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
'is_secondary' => empty($file_update_info),
|
'is_secondary' => count($file_update_info) < 1,
|
||||||
),
|
),
|
||||||
'database_update_submit' => array(
|
'database_update_submit' => array(
|
||||||
'label' => 'UPDATE_CONTINUE_UPDATE_PROCESS',
|
'label' => 'UPDATE_CONTINUE_UPDATE_PROCESS',
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
'disabled' => !empty($file_update_info),
|
'disabled' => count($file_update_info) > 0,
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue