diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 79b2f12df31..4e161172c25 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1028,10 +1028,9 @@ class Form $yes="1"; $no="0"; } - + print ''."\n"; - - if ($value == 'yes' || $value == 1) + if (("$value" == 'yes') || ($value == 1)) { print ''.$langs->trans("yes").''."\n"; print ''.$langs->trans("no").''."\n";