- 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

View File

@@ -1,6 +1,7 @@
05/05/2010 05/05/2010
- bugfix on {insert} to cache parameter - bugfix on {insert} to cache parameter
- implementation of $smarty->default_modifiers as in Smarty2 - implementation of $smarty->default_modifiers as in Smarty2
- bugfix on getTemplateVars method
01/05/2010 01/05/2010
- bugfix on handling of variable method names at object chaning - bugfix on handling of variable method names at object chaning

View File

@@ -188,7 +188,7 @@ class Smarty_Internal_Data {
$_ptr = null; $_ptr = null;
} }
} }
if ($search_parents) { if ($search_parents && isset($this->global_tpl_vars)) {
foreach ($this->global_tpl_vars AS $key => $var) { foreach ($this->global_tpl_vars AS $key => $var) {
$_result[$key] = $var->value; $_result[$key] = $var->value;
} }