From 050af61082fbab49c8a98cd9a2e0255eed2bf084 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Wed, 9 Oct 2019 12:05:04 +0200 Subject: [PATCH] show success in updater when there are no more old files to delete and exec() is disallowed (showed empty list) Signed-off-by: Michael Kaufmann --- install/updates/froxlor/0.10/update_0.10.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install/updates/froxlor/0.10/update_0.10.inc.php b/install/updates/froxlor/0.10/update_0.10.inc.php index 43bc0f99..33b82bca 100644 --- a/install/updates/froxlor/0.10/update_0.10.inc.php +++ b/install/updates/froxlor/0.10/update_0.10.inc.php @@ -319,8 +319,13 @@ if (\Froxlor\Froxlor::isDatabaseVersion('201907270')) { if ($exec_allowed) { lastStepStatus(0); } else { - lastStepStatus(1, 'manual commands needed'); - echo 'Please run the following commands manually:
'.$del_list.'

'; + if (empty($del_list)) { + // non of the files existed + lastStepStatus(0); + } else { + lastStepStatus(1, 'manual commands needed'); + echo 'Please run the following commands manually:
'.$del_list.'

'; + } } \Froxlor\Froxlor::updateToDbVersion('201909150');