diff options
Diffstat (limited to 'include/smarty/libs/plugins')
-rw-r--r-- | include/smarty/libs/plugins/function.math.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/smarty/libs/plugins/function.math.php b/include/smarty/libs/plugins/function.math.php index 71672fea4..bb78dac22 100644 --- a/include/smarty/libs/plugins/function.math.php +++ b/include/smarty/libs/plugins/function.math.php @@ -27,7 +27,8 @@ function smarty_function_math($params, &$smarty) return; } - $equation = $params['equation']; + // strip out backticks, not necessary for math + $equation = str_replace('`','',$params['equation']); // make sure parenthesis are balanced if (substr_count($equation,"(") != substr_count($equation,")")) { |