diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 97b091c4..bc9825c0 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1589,7 +1589,7 @@ class Smarty_Compiler extends Smarty { // inform the calling expression the return type (php, static) $this->_output_type = 'php'; - $_math_vars = preg_split('!('.$this->_dvar_math_regexp.'|\".*?\")!', $var_expr, -1, PREG_SPLIT_DELIM_CAPTURE); + $_math_vars = preg_split('!('.$this->_dvar_math_regexp.'|'.$this->_qstr_regexp.')!', $var_expr, -1, PREG_SPLIT_DELIM_CAPTURE); if(count($_math_vars) > 1) { $_output = "";