From 2d741a33f08a6323c9db8956bb78638f04dfa5ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 15 Mar 2021 21:03:54 +0100 Subject: [PATCH] fix php8 warning --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 3d208d80eb2..8b0b482f33f 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -7897,7 +7897,7 @@ class Form // Preparing gender's display if there is one $addgendertxt = ''; - if ($object->gender) { + if (!empty($object->gender)) { $addgendertxt = ' '; switch ($object->gender) { case 'man':