From 5905c1d61cec98d5209fa782f6c319221cab3592 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 11 Mar 2006 23:52:25 +0000 Subject: [PATCH] Fix: Supprime warning si date incorrecte --- htdocs/commande/fiche.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 6b344eb7848..04c345a769c 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -76,8 +76,9 @@ if ($_POST['action'] == 'classin' && $user->rights->commande->creer) // Ajout commande if ($_POST['action'] == 'add' && $user->rights->commande->creer) { - $datecommande = mktime(12, 0 , 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']); - + $datecommande=''; + $datecommande = @mktime(12, 0 , 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']); + $commande = new Commande($db); $commande->soc_id = $_POST['soc_id'];