fix warnings

This commit is contained in:
Frédéric FRANCE 2021-05-27 22:28:59 +02:00 committed by GitHub
parent 819e6e1122
commit 52d44bd75e
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';
}
}