From bcdaa173229729840a4805512c1a5207b299d9f6 Mon Sep 17 00:00:00 2001 From: mohrt Date: Wed, 7 Feb 2001 23:57:39 +0000 Subject: [PATCH] added ability to pass array to clear_assign --- Smarty.class.php | 3 ++- libs/Smarty.class.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index d569d1d7..4c281f74 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -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]); } diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index d569d1d7..4c281f74 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -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]); }