Skip to content

Commit

Permalink
Smarty5 syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wisskid committed Sep 14, 2022
1 parent 08afb51 commit 80e4549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/plugins/function.html_select_date.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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(
Expand Down

0 comments on commit 80e4549

Please sign in to comment.