From 3db487a7168011ddfb8f75535935700959cf3516 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Tue, 19 Oct 2010 12:05:03 +0000 Subject: NULL and empty-string attributes are skipped in addition to FALSE --- views/default/html/tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/default/html') 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\""; } -- cgit v1.2.3