From 01540dca3c395da89ef66e79df4a1d358d8a32e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 20 Aug 2024 03:24:52 +0200 Subject: [PATCH] restore original code (#30671) * restore original code * Update datepicker.php * Update datepicker.php --- htdocs/core/datepicker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/datepicker.php b/htdocs/core/datepicker.php index 61352fa2b2c..a01c02563bf 100644 --- a/htdocs/core/datepicker.php +++ b/htdocs/core/datepicker.php @@ -126,7 +126,7 @@ if (isset($_GET["m"]) && isset($_GET["y"])) { // If parameters provided, we show calendar if ($qualified) { - displayBox(GETPOSTINT("sd"), GETPOSTINT("m"), GETPOSTINT("y")); + displayBox(GETPOST("sd", 'alpha'), GETPOSTINT("m"), GETPOSTINT("y")); } else { dol_print_error(null, 'ErrorBadParameters'); } @@ -152,7 +152,7 @@ function xyzToUnixTimestamp($mysqldate) /** * Show box * - * @param string $selectedDate Date YYYMMDD + * @param string $selectedDate Date YYYYMMDD * @param int $month Month * @param int $year Year * @return void