aboutsummaryrefslogtreecommitdiff
path: root/views/default/html
diff options
context:
space:
mode:
authorEvan Winslow <evan.b.winslow@gmail.com>2010-10-19 12:05:03 +0000
committerEvan Winslow <evan.b.winslow@gmail.com>2010-10-19 12:05:03 +0000
commit3db487a7168011ddfb8f75535935700959cf3516 (patch)
treef94a082016ccf15ccf3a7fdb7a8bc81f17118331 /views/default/html
parent2f69470d927c102216383077e3f7f3e70054bd24 (diff)
downloadelgg-3db487a7168011ddfb8f75535935700959cf3516.tar.gz
elgg-3db487a7168011ddfb8f75535935700959cf3516.tar.bz2
NULL and empty-string attributes are skipped in addition to FALSE
Diffstat (limited to 'views/default/html')
-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\"";
}