- fixed E_STRICT errors for uninitialized variables

This commit is contained in:
Uwe.Tews
2010-08-23 14:40:10 +00:00
parent ee15e53542
commit 96e3d9937a
9 changed files with 18 additions and 6 deletions

View File

@@ -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'])) {