From 1dd277dc0b15b0b01a67ad45f1e6f87a2aaa6417 Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Thu, 21 Jan 2021 08:34:05 -0700 Subject: [PATCH] bug fix for null-ish values --- src/TagTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TagTrait.php b/src/TagTrait.php index e651898..88c313e 100644 --- a/src/TagTrait.php +++ b/src/TagTrait.php @@ -99,7 +99,7 @@ trait TagTrait //build attributes if ($attr = $this->htmlAttributes()) { foreach ($attr as $key => $value) { - if (!"$value") { + if ($value === null) { $out .= " $key"; } else { $value = htmlspecialchars($value);