diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 6d83561e2a9..c909df601f8 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4303,7 +4303,7 @@ class Form
}
else
{
- $selected=($useempty?'':' selected="selected"');
+ $selected=(($useempty && $value != '0' && $value != 'no')?'':' selected="selected"');
$resultyesno .= ''."\n";
$resultyesno .= ''."\n";
}