From 80e45491e1ce52dc271fe3a6af0fcc87ec2526a5 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Wed, 14 Sep 2022 12:58:07 +0200 Subject: [PATCH] Smarty5 syntax fix --- libs/plugins/function.html_select_date.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/plugins/function.html_select_date.php b/libs/plugins/function.html_select_date.php index fb13f8fd..1794b346 100644 --- a/libs/plugins/function.html_select_date.php +++ b/libs/plugins/function.html_select_date.php @@ -196,7 +196,7 @@ function smarty_function_html_select_date($params, Smarty_Internal_Template $tem } } else { // no date found, use NOW - [$_year, $_month, $_day] = explode('-', date('Y-m-d')); + list($_year, $_month, $_day) = explode('-', date('Y-m-d')); } } elseif (isset($time) && preg_match("/(\d*)-(\d*)-(\d*)/", $time, $matches)) { $_year = $_month = $_day = null; @@ -207,7 +207,7 @@ function smarty_function_html_select_date($params, Smarty_Internal_Template $tem if (array_key_exists('time', $params)) { $_year = $_month = $_day = null; } else { - [$_year, $_month, $_day] = explode('-', date('Y-m-d')); + list($_year, $_month, $_day) = explode('-', date('Y-m-d')); } } else { $template->_checkPlugins(