mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-07 17:54:38 +02:00
- fixed E_STRICT errors for uninitialized variables
This commit is contained in:
@@ -63,7 +63,7 @@ function smarty_function_math($params, $smarty, $template)
|
||||
$equation = preg_replace("/\b$key\b/", " \$params['$key'] ", $equation);
|
||||
}
|
||||
}
|
||||
|
||||
$smarty_math_result = null;
|
||||
eval("\$smarty_math_result = ".$equation.";");
|
||||
|
||||
if (empty($params['format'])) {
|
||||
|
Reference in New Issue
Block a user