diff --git a/web/lib/MRBS/Form/Element.php b/web/lib/MRBS/Form/Element.php index 543bbbe097..605dff1210 100644 --- a/web/lib/MRBS/Form/Element.php +++ b/web/lib/MRBS/Form/Element.php @@ -398,7 +398,7 @@ public function toHTML($no_whitespace=false) { // boolean attributes, eg 'required', don't need a value $html .= '="'; - if (is_int($value)) + if (is_numeric($value)) { // No need to escape these $html .= $value; @@ -458,7 +458,7 @@ public function toHTML($no_whitespace=false) private static function escapeText($text, $raw=false) { - if ($raw || is_int($text)) + if ($raw || is_numeric($text)) { return $text; }