🚑 fix(templates) Fix crash when a field is left empty and used in a template mask

issue #6085
parent 3ae050ad
......@@ -138,6 +138,10 @@ class templateHandling
$result = $attrs[$mask];
if (is_array($result)) {
unset($result['count']);
if (empty($result)) {
/* No value and empty value is the same in LDAP so we have to treat them the same */
$result = [''];
}
} else {
$result = [$result];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment