Merge pull request #86 from nekufa/patch-1

Fixed array convertion and foreach tag separator
This commit is contained in:
Ivan Shalganov 2014-06-30 13:59:31 +04:00
commit 19aa493474

View File

@ -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('[')) {