From 8cfa06ab2d87344add86b7e387a8768ea3d0a1d3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 28 May 2004 15:04:20 +0000 Subject: [PATCH] bugfix avec les dates de naissances --- htdocs/contact/perso.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/htdocs/contact/perso.php b/htdocs/contact/perso.php index 6a2cab55639..f03c189a57f 100644 --- a/htdocs/contact/perso.php +++ b/htdocs/contact/perso.php @@ -28,10 +28,8 @@ if ($HTTP_POST_VARS["action"] == 'update') $contact = new Contact($db); $contact->id = $HTTP_POST_VARS["contactid"]; - $contact->birthday = mktime(12, 1 , 1, - $HTTP_POST_VARS["remonth"], - $HTTP_POST_VARS["reday"], - $HTTP_POST_VARS["reyear"]); + $contact->birthday = $HTTP_POST_VARS["reyear"].'-'.$HTTP_POST_VARS["remonth"].'-'.$HTTP_POST_VARS["reday"]; + $contact->birthday_alert = $HTTP_POST_VARS["birthday_alert"]; @@ -77,7 +75,7 @@ if ($_GET["action"] == 'edit') print 'Date de naissance'; $html = new Form($db); - print $contact->birthday; + print $html->select_date('','re',0,0,1); print 'Alerte : '; if ($contact->birthday_alert)