diff --git a/web/lib/MRBS/Form/Element.php b/web/lib/MRBS/Form/Element.php index 964cfe113..8f042ac70 100644 --- a/web/lib/MRBS/Form/Element.php +++ b/web/lib/MRBS/Form/Element.php @@ -399,7 +399,7 @@ public function toHTML(bool $no_whitespace=false): string } $html .= " $key"; - if (isset($value) && ($value !== true)) + if ($value !== true) { // boolean attributes, eg 'required', don't need a value $html .= '="';