Skip to content
Snippets Groups Projects
Commit 02261ed6 authored by Yannick Warnier's avatar Yannick Warnier
Browse files

fix zeros dans birthday

parent 78e5c3ff
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ if ($_POST["action"] == 'update')
&& $birthday>=1 && $birthday<=31
&& $birthyear>=1850 && $birthyear<=date('Y'))
{
$contact->birthday = $birthyear.$birthmonth.$birthday;
$contact->birthday = ($birthyear*10000)+($birthmonth*100)+$birthday;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment