fix: new member public page firstname test

This commit is contained in:
Dorian Vabre 2021-04-07 12:36:30 +02:00
parent bf6ea78211
commit 999be03f8d

View File

@ -218,7 +218,7 @@ if (empty($reshook) && $action == 'add') {
$error++;
$errmsg .= $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Lastname"))."<br>\n";
}
if (GETPOST("firstname")) {
if (!GETPOST("firstname")) {
$error++;
$errmsg .= $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Firstname"))."<br>\n";
}