diff options
author | Evan Winslow <evan.b.winslow@gmail.com> | 2010-10-19 12:05:03 +0000 |
---|---|---|
committer | Evan Winslow <evan.b.winslow@gmail.com> | 2010-10-19 12:05:03 +0000 |
commit | 3db487a7168011ddfb8f75535935700959cf3516 (patch) | |
tree | f94a082016ccf15ccf3a7fdb7a8bc81f17118331 | |
parent | 2f69470d927c102216383077e3f7f3e70054bd24 (diff) | |
download | elgg-3db487a7168011ddfb8f75535935700959cf3516.tar.gz elgg-3db487a7168011ddfb8f75535935700959cf3516.tar.bz2 |
NULL and empty-string attributes are skipped in addition to FALSE
-rw-r--r-- | views/default/html/tag.php | 2 |
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\""; } |