fix clear_assign syntax error

This commit is contained in:
mohrt
2001-02-08 14:18:25 +00:00
parent bcdaa17322
commit f3f85f4463
3 changed files with 166 additions and 27 deletions

View File

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