From c24e213ed91866ecb6d37a5128dd3b4e32f63f17 Mon Sep 17 00:00:00 2001 From: rodneyrehm Date: Sat, 1 Oct 2011 19:35:54 +0000 Subject: [PATCH] typo --- libs/plugins/function.math.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/plugins/function.math.php b/libs/plugins/function.math.php index c2621a68..60a92f40 100644 --- a/libs/plugins/function.math.php +++ b/libs/plugins/function.math.php @@ -46,7 +46,7 @@ function smarty_function_math($params, $template) preg_match_all("!(?:0x[a-fA-F0-9]+)|([a-zA-Z][a-zA-Z0-9_]*)!",$equation, $match); foreach($match[1] as $curr_var) { - if ($curr_var && !isset($params[$curr_var]) && !isset($_allowed_funcs[$current_var])) { + if ($curr_var && !isset($params[$curr_var]) && !isset($_allowed_funcs[$curr_var])) { trigger_error("math: function call $curr_var not allowed",E_USER_WARNING); return; }