Fixed array convertion and foreach tag separator

This commit is contained in:
Dmitry Krokhin 2014-06-30 13:36:11 +04:00
parent ce9245cb50
commit 89d1cae918
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class Compiler
$check = '!empty('.$from.')';
} else {
$scope["var"] = $scope->tpl->tmpVar();
$prepend = $scope["var"].' = (array)('.$from.')';
$prepend = $scope["var"].' = (array)('.$from.');';
$from = $check = $scope["var"];
}
} elseif ($tokens->is('[')) {