do nothing if $val is empty

This commit is contained in:
mohrt
2002-06-29 16:07:02 +00:00
parent eacfdadf4b
commit 174f0139f1
2 changed files with 6 additions and 0 deletions

View File

@@ -16,6 +16,9 @@ function smarty_function_eval($params, &$this)
$this->trigger_error("eval: missing 'var' parameter");
return;
}
if($var == '') {
return;
}
$this->_compile_template("evaluated template", $var, $source);

View File

@@ -16,6 +16,9 @@ function smarty_function_eval($params, &$this)
$this->trigger_error("eval: missing 'var' parameter");
return;
}
if($var == '') {
return;
}
$this->_compile_template("evaluated template", $var, $source);