summaryrefslogtreecommitdiff
path: root/src/lib/lang.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/lang.php')
-rw-r--r--src/lib/lang.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/lang.php b/src/lib/lang.php
index 84a4215..6be65e1 100644
--- a/src/lib/lang.php
+++ b/src/lib/lang.php
@@ -162,8 +162,10 @@ function ilang(
// open tag
$html .= "<{$type}";
foreach ($attrs as $key => $value) {
- $value = esc($value, TRUE); // html tag & string escape
- $html .= " {$key}=\"{$value}\"";
+ if ($value) {
+ $value = esc($value, TRUE); // html tag & string escape
+ $html .= " {$key}=\"{$value}\"";
+ }
}
$html .= ">";
// icon