Fi sntax error

This commit is contained in:
Laurent Destailleur
2015-11-13 11:44:55 +01:00
parent eac80d7db4
commit bad28c6d92

View File

@@ -1264,7 +1264,8 @@ if ($action == 'create' && $user->rights->commande->creer) {
} }
if (!$dateorder) { if (!$dateorder) {
// Do not set 0 here (0 for a date is 1970) // Do not set 0 here (0 for a date is 1970)
$dateorder = (empty($dateinvoice)?(empty($conf->global->MAIN_AUTOFILL_DATE_ODER)?-1:''):$dateorder); $dateorder = (empty($dateinvoice)?(empty($conf->global->MAIN_AUTOFILL_DATE_ODER)?-1:''):$dateorder);
}
} else { } else {
// For compatibility // For compatibility
if ($element == 'order' || $element == 'commande') { if ($element == 'order' || $element == 'commande') {