Skip to content

Commit

Permalink
Delete condition that is always true at this point
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Oct 27, 2024
1 parent 3cdb1c9 commit 763d4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/lib/MRBS/Form/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '="';
Expand Down

0 comments on commit 763d4df

Please sign in to comment.