Merge pull request #79 from ulriklystbaek/patch-5

Update Context.php, Return null instead of empty string when the variable is not available in context
This commit is contained in:
Fzerorubigd 2014-08-28 14:26:04 +04:30
commit 8a669f3176

View File

@ -253,7 +253,7 @@ class Context
*/
private function _findVariableInContext($variable, $inside, $strict = false)
{
$value = '';
$value = null;
if (($inside !== '0' && empty($inside)) || ($inside == 'this')) {
return $variable;
} elseif (is_array($variable)) {