Unverified Commit f9ca9d3b authored by Côme Chilliet's avatar Côme Chilliet
Browse files

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

issue #6085
Showing with 4 additions and 0 deletions
+4 -0
......@@ -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];
}
......
Supports Markdown
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