diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 17aefec4576..f7de2a9353c 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3880,7 +3880,7 @@ class Form while ($i < $num) { $obj = $this->db->fetch_object($result); - if ($selected == $obj->rowid || ($useempty === 2 && $num === 1 && empty($selected))) + if ($selected == $obj->rowid || ($useempty == 2 && $num == 1 && empty($selected))) { print '