diff --git a/change_log.txt b/change_log.txt index 39d7583e..ed66c9b7 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ 05/05/2010 - bugfix on {insert} to cache parameter - implementation of $smarty->default_modifiers as in Smarty2 +- bugfix on getTemplateVars method 01/05/2010 - bugfix on handling of variable method names at object chaning diff --git a/libs/sysplugins/smarty_internal_data.php b/libs/sysplugins/smarty_internal_data.php index 63f98a1d..6813ad6c 100644 --- a/libs/sysplugins/smarty_internal_data.php +++ b/libs/sysplugins/smarty_internal_data.php @@ -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 { } } -?> +?> \ No newline at end of file