mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Fixed array convertion and foreach tag separator
This commit is contained in:
parent
ce9245cb50
commit
89d1cae918
@ -144,7 +144,7 @@ class Compiler
|
|||||||
$check = '!empty('.$from.')';
|
$check = '!empty('.$from.')';
|
||||||
} else {
|
} else {
|
||||||
$scope["var"] = $scope->tpl->tmpVar();
|
$scope["var"] = $scope->tpl->tmpVar();
|
||||||
$prepend = $scope["var"].' = (array)('.$from.')';
|
$prepend = $scope["var"].' = (array)('.$from.');';
|
||||||
$from = $check = $scope["var"];
|
$from = $check = $scope["var"];
|
||||||
}
|
}
|
||||||
} elseif ($tokens->is('[')) {
|
} elseif ($tokens->is('[')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user