]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
NULL and empty-string attributes are skipped in addition to FALSE
authorEvan Winslow <evan.b.winslow@gmail.com>
Tue, 19 Oct 2010 12:05:03 +0000 (12:05 +0000)
committerEvan Winslow <evan.b.winslow@gmail.com>
Tue, 19 Oct 2010 12:05:03 +0000 (12:05 +0000)
views/default/html/tag.php

index b4875d9530c1e2935322142919ba387af9fd1d71..67a7d067cf537dd153a78ae879b1ab2ec3e41087 100644 (file)
@@ -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\"";
        }