Fix: Supprime warning si date incorrecte

This commit is contained in:
Laurent Destailleur 2006-03-11 23:52:25 +00:00
parent 731b50e703
commit 5905c1d61c

View File

@ -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'];