Update card.php

This commit is contained in:
Laurent Destailleur 2021-11-30 15:29:19 +01:00 committed by GitHub
parent d1f5cb9184
commit 31393802ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1701,7 +1701,7 @@ if ($action == 'create') {
// Delivery date (or manufacturing)
print '<tr><td>'.$langs->trans("DeliveryDate").'</td>';
print '<td>';
if (!empty($conf->global->DATE_LIVRAISON_WEEK_DELAY)) {
if (isset($conf->global->DATE_LIVRAISON_WEEK_DELAY) && is_numeric($conf->global->DATE_LIVRAISON_WEEK_DELAY)) {
$tmpdte = time() + ((7 * $conf->global->DATE_LIVRAISON_WEEK_DELAY) * 24 * 60 * 60);
$syear = date("Y", $tmpdte);
$smonth = date("m", $tmpdte);