mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Fix crash last ',' in array
This commit is contained in:
parent
76e90e8404
commit
674dd2d909
@ -1313,7 +1313,7 @@ class Template extends Render
|
||||
$_arr .= $this->parseArray($tokens);
|
||||
$key = false;
|
||||
$val = true;
|
||||
} elseif ($tokens->is(']') && !$key) {
|
||||
} elseif ($tokens->is(']') && (!$key || $tokens->prev[0] === ',')) {
|
||||
$tokens->next();
|
||||
return $_arr . ')';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user