Merge pull request #27165 from defrance/patch-310

Php V8 warning
This commit is contained in:
Laurent Destailleur 2023-12-28 19:28:43 +01:00 committed by GitHub
commit 70ce043b58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,6 +166,8 @@ if (empty($reshook)) {
}
}
$selectedLines = GETPOST('toselect', 'array');
if ($cancel) {
if (!empty($backtopageforcancel)) {
header("Location: ".$backtopageforcancel);
@ -265,7 +267,6 @@ if (empty($reshook)) {
// Add order
$datecommande = dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear'));
$date_delivery = dol_mktime(GETPOST('liv_hour', 'int'), GETPOST('liv_min', 'int'), 0, GETPOST('liv_month', 'int'), GETPOST('liv_day', 'int'), GETPOST('liv_year', 'int'));
$selectedLines = GETPOST('toselect', 'array');
if ($datecommande == '') {
setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentities('Date')), null, 'errors');