From e6f09ed32a30442e9dc25e8056a057d71308f700 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 19 Apr 2022 13:35:16 +0300 Subject: [PATCH] fix install date format --- install/core/Installer.php | 7 +++++-- install/core/tpl/step4.tpl | 12 ++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/install/core/Installer.php b/install/core/Installer.php index 803315155b..9a09b2e071 100644 --- a/install/core/Installer.php +++ b/install/core/Installer.php @@ -660,10 +660,13 @@ class Installer $value = (int) $value; case 'enum': - if (isset($paramDefs['options']) && array_key_exists($value, $paramDefs['options'])) { + if ( + isset($paramDefs['options']) && array_key_exists($value, $paramDefs['options']) || + !isset($paramDefs['options']) + ) { $normalizedParams[$name] = $value; } - else if (array_key_exists('default', $paramDefs)) { + else if (isset($paramDefs['options']) && array_key_exists('default', $paramDefs)) { $normalizedParams[$name] = $paramDefs['default']; $GLOBALS['log']->warning( diff --git a/install/core/tpl/step4.tpl b/install/core/tpl/step4.tpl index 03230fcf80..4ba74cfb85 100644 --- a/install/core/tpl/step4.tpl +++ b/install/core/tpl/step4.tpl @@ -10,11 +10,11 @@
@@ -27,11 +27,11 @@