aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/html/tag.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/html/tag.php b/views/default/html/tag.php
index b4875d953..67a7d067c 100644
--- a/views/default/html/tag.php
+++ b/views/default/html/tag.php
@@ -43,7 +43,7 @@ $element[] = "<$tag";
foreach ($vars as $attr => $val) {
if ($val === TRUE) {
$element[] = $attr;
- } elseif ($val !== FALSE) {
+ } elseif (!empty($val)) {
$val = htmlspecialchars($val);
$element[] = "$attr=\"$val\"";
}