diff --git a/class.templater.php b/class.templater.php index a0ca50b..61f38a1 100644 --- a/class.templater.php +++ b/class.templater.php @@ -636,7 +636,7 @@ class TemplateElement /* Traverse up the tree to find a provider for the specified variable. */ while(true) { - if($target->context == $variable_name) + if(isset($target->context) && $target->context == $variable_name) { if(!is_array($target->context_item)) {