Skip to content

Commit

Permalink
show success in updater when there are no more old files to delete an…
Browse files Browse the repository at this point in the history
…d exec() is disallowed (showed empty list)

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Oct 9, 2019
1 parent 2c23431 commit 050af61
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install/updates/froxlor/0.10/update_0.10.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,13 @@
if ($exec_allowed) {
lastStepStatus(0);
} else {
lastStepStatus(1, 'manual commands needed');
echo '<span class="update-step update-step-err">Please run the following commands manually:</span><br><pre>'.$del_list.'</pre><br>';
if (empty($del_list)) {
// non of the files existed
lastStepStatus(0);
} else {
lastStepStatus(1, 'manual commands needed');
echo '<span class="update-step update-step-err">Please run the following commands manually:</span><br><pre>'.$del_list.'</pre><br>';
}
}

\Froxlor\Froxlor::updateToDbVersion('201909150');
Expand Down

0 comments on commit 050af61

Please sign in to comment.