Commit f9ca9d3b authored by Côme Chilliet's avatar Côme Chilliet

🚑 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)) {
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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment