Merge pull request #17752 from frederic34/patch-14

fix warnings
This commit is contained in:
Laurent Destailleur 2021-06-04 11:51:01 +02:00 committed by GitHub
commit c67ea954f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8325,10 +8325,10 @@ class Form
$nophoto = 'company';
} else {
$nophoto = '/public/theme/common/user_anonymous.png';
if ($object->gender == 'man') {
if (!empty($object->gender) && $object->gender == 'man') {
$nophoto = '/public/theme/common/user_man.png';
}
if ($object->gender == 'woman') {
if (!empty($object->gender) && $object->gender == 'woman') {
$nophoto = '/public/theme/common/user_woman.png';
}
}