fixed assign parameter for eval (must have gotton lost on its way to 2.5.0)

cleaned up indentiation
This commit is contained in:
messju
2003-07-17 14:23:18 +00:00
parent 3eed52e2cb
commit fe63515d03

View File

@@ -36,8 +36,8 @@ function smarty_function_eval($params, &$smarty)
$_contents = ob_get_contents(); $_contents = ob_get_contents();
ob_end_clean(); ob_end_clean();
if (!empty($assign)) { if (!empty($params['assign'])) {
$smarty->assign($assign, $_contents); $smarty->assign($params['assign'], $_contents);
} else { } else {
return $_contents; return $_contents;
} }