- bugfix on getTemplateVars method

This commit is contained in:
Uwe.Tews
2010-05-06 00:32:10 +00:00
parent 2e8b7c864d
commit bf591a307b
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ class Smarty_Internal_Data {
$_ptr = null;
}
}
if ($search_parents) {
if ($search_parents && isset($this->global_tpl_vars)) {
foreach ($this->global_tpl_vars AS $key => $var) {
$_result[$key] = $var->value;
}
@@ -440,4 +440,4 @@ class Undefined_Smarty_Variable {
}
}
?>
?>