From ac82aa80d233cd5b8a251a2d4d2b4fac753e42ed Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Thu, 9 Jan 2020 14:14:04 +0100 Subject: [PATCH] correct logfiles_format migration; only needed if setting is non-empty 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 d13eb893..9508e6a9 100644 --- a/install/updates/froxlor/0.10/update_0.10.inc.php +++ b/install/updates/froxlor/0.10/update_0.10.inc.php @@ -545,7 +545,12 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.10.10')) { if (\Froxlor\Froxlor::isDatabaseVersion('201912311')) { showUpdateStep("Migrate logfiles_format setting"); - Settings::Set('system.logfiles_format', '"' . Settings::Get('system.logfiles_format') . '"'); - lastStepStatus(0); + $current_format = Settings::Set('system.logfiles_format'); + if (!empty($current_format)) { + Settings::Set('system.logfiles_format', '"' . Settings::Get('system.logfiles_format') . '"'); + lastStepStatus(0); + } else { + lastStepStatus(0, 'not needed'); + } \Froxlor\Froxlor::updateToDbVersion('201912312'); }