summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-12-23 10:54:39 -0500
committerFreya Murphy <freya@freyacat.org>2024-12-23 10:56:29 -0500
commitacfd47748d1da62ac976fba8450277c88b402110 (patch)
tree4ec3e9021ffaede334d5af09883bb7f89e5126e0 /src
parentadd args to psql (diff)
downloadcrimson-acfd47748d1da62ac976fba8450277c88b402110.tar.gz
crimson-acfd47748d1da62ac976fba8450277c88b402110.tar.bz2
crimson-acfd47748d1da62ac976fba8450277c88b402110.zip
lang null check
Diffstat (limited to 'src')
-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