From 17c2b4f0e8336731713250497adba37872da1f36 Mon Sep 17 00:00:00 2001 From: daraelmin Date: Sat, 17 Apr 2021 23:58:00 +0200 Subject: [PATCH] Fix warning wrong date format for new member form Fix warning wrong date format for new member form when new membre submit no birthdate --- htdocs/public/members/new.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index e6b7a3e7a38..349943c7978 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -228,7 +228,7 @@ if (empty($reshook) && $action == 'add') { $errmsg .= $langs->trans("ErrorBadEMail", GETPOST("email"))."
\n"; } $birthday = dol_mktime(GETPOST("birthhour", 'int'), GETPOST("birthmin", 'int'), GETPOST("birthsec", 'int'), GETPOST("birthmonth", 'int'), GETPOST("birthday", 'int'), GETPOST("birthyear", 'int')); - if (GETPOSTISSET("birthmonth") && empty($birthday)) { + if (GETPOST("birthmonth") && empty($birthday)) { $error++; $langs->load("errors"); $errmsg .= $langs->trans("ErrorBadDateFormat")."
\n";