mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Update Accessor.php
This commit is contained in:
parent
decad1d1fa
commit
317c775f50
@ -185,8 +185,12 @@ class Accessor {
|
||||
}
|
||||
}
|
||||
if($tokens->is(',')) {
|
||||
$tokens->skip()->need('[');
|
||||
$tokens->next();
|
||||
if($tokens->is('[')){
|
||||
$vars = $tpl->parseArray($tokens) . ' + $var';
|
||||
}elseif($tokens->is(T_VARIABLE)){
|
||||
$vars = $tpl->parseExpr($tokens) . ' + $var';
|
||||
}
|
||||
} else {
|
||||
$vars = '$var';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user