diff --git a/Smarty.addons.php b/Smarty.addons.php index 8fc6a3c8..2c4ea3f4 100644 --- a/Smarty.addons.php +++ b/Smarty.addons.php @@ -209,7 +209,6 @@ function smarty_func_assign($vars,&$smarty_obj) { extract($vars); $smarty_obj->assign($var,$val); - $smarty_obj->_extract = true; return true; } @@ -221,7 +220,6 @@ function smarty_func_unassign($vars,&$smarty_obj) { extract($vars); $smarty_obj->clear_assign($var); - $smarty_obj->_extract = true; return true; } diff --git a/Smarty.class.php b/Smarty.class.php index 8381e71a..9d7bdf36 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -205,6 +205,7 @@ class Smarty if (!empty($tpl_var) && isset($value)) $this->_tpl_vars[$tpl_var] = $value; } + $this->_extract = true; } @@ -229,6 +230,7 @@ class Smarty $this->_tpl_vars[$tpl_var][] = $value; } } + $this->_extract = true; } @@ -243,6 +245,7 @@ class Smarty unset($this->_tpl_vars[$curr_var]); else unset($this->_tpl_vars[$tpl_var]); + $this->_extract = true; } diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 8381e71a..9d7bdf36 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -205,6 +205,7 @@ class Smarty if (!empty($tpl_var) && isset($value)) $this->_tpl_vars[$tpl_var] = $value; } + $this->_extract = true; } @@ -229,6 +230,7 @@ class Smarty $this->_tpl_vars[$tpl_var][] = $value; } } + $this->_extract = true; } @@ -243,6 +245,7 @@ class Smarty unset($this->_tpl_vars[$curr_var]); else unset($this->_tpl_vars[$tpl_var]); + $this->_extract = true; }