Merge pull request #17157 from DorianVabre/fix_member_public_page

fix: new member public page firstname test
This commit is contained in:
Laurent Destailleur 2021-04-08 15:40:24 +02:00 committed by GitHub
commit b37cf2eb1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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";
}