added ability to pass array to clear_assign

This commit is contained in:
mohrt
2001-02-07 23:57:39 +00:00
parent d539f10a18
commit bcdaa17322
2 changed files with 4 additions and 2 deletions

View File

@@ -163,7 +163,8 @@ class Smarty
function clear_assign($tpl_var)
{
unset($this->_tpl_vars[$tpl_var]);
foreach($tpl_var as $curr_var)
unset($this->_tpl_vars[$curr_var]);
}

View File

@@ -163,7 +163,8 @@ class Smarty
function clear_assign($tpl_var)
{
unset($this->_tpl_vars[$tpl_var]);
foreach($tpl_var as $curr_var)
unset($this->_tpl_vars[$curr_var]);
}