mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
do nothing if $val is empty
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user