Commit 6e9a28ea authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(template) Fix PHP error when no modifiers are used on a field

issue #5882
Showing with 2 additions and 0 deletions
+2 -0
...@@ -133,6 +133,8 @@ class templateHandling ...@@ -133,6 +133,8 @@ class templateHandling
$result = $attrs[$mask]; $result = $attrs[$mask];
if (is_array($result)) { if (is_array($result)) {
unset($result['count']); unset($result['count']);
} else {
$result = array($result);
} }
} elseif (($mask != '') && !preg_match('/c/', $modifiers)) { } elseif (($mask != '') && !preg_match('/c/', $modifiers)) {
trigger_error("'$mask' was not found in attributes"); trigger_error("'$mask' was not found in attributes");
......
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