mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Merge pull request #148 from fenom-template/develop
Fix bug: unexpected array conversion when object given to {foreach} with...
This commit is contained in:
commit
45a3abed88
@ -142,7 +142,7 @@ class Compiler
|
||||
$check = '!empty('.$from.')';
|
||||
} else {
|
||||
$scope["var"] = $scope->tpl->tmpVar();
|
||||
$prepend = $scope["var"].' = (array)('.$from.');';
|
||||
$prepend = $scope["var"].' = '.$from.';';
|
||||
$from = $check = $scope["var"];
|
||||
}
|
||||
} elseif ($tokens->is('[')) {
|
||||
|
Loading…
Reference in New Issue
Block a user