diff --git a/src/Handlebars/Context.php b/src/Handlebars/Context.php index 173a62c..596c5ab 100644 --- a/src/Handlebars/Context.php +++ b/src/Handlebars/Context.php @@ -8,6 +8,7 @@ * @category Xamin * @package Handlebars * @author fzerorubigd + * @author Behrooz Shabani * @copyright 2012 (c) ParsPooyesh Co * @license GPLv3 * @version GIT: $Id$ @@ -21,6 +22,7 @@ * @category Xamin * @package Handlebars * @author fzerorubigd + * @author Behrooz Shabani * @copyright 2012 (c) ParsPooyesh Co * @license GPLv3 * @version Release: @package_version@ @@ -125,7 +127,7 @@ class Handlebars_Context } else { $chunks = explode('.', $variableName); foreach ($chunks as $chunk) { - if ($current == '') { + if (is_string($current) and $current == '') { return $current; } $current = $this->_findVariableInContext($current, $chunk);