mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24: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");
|
$this->trigger_error("eval: missing 'var' parameter");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if($var == '') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->_compile_template("evaluated template", $var, $source);
|
$this->_compile_template("evaluated template", $var, $source);
|
||||||
|
|
||||||
|
@@ -16,6 +16,9 @@ function smarty_function_eval($params, &$this)
|
|||||||
$this->trigger_error("eval: missing 'var' parameter");
|
$this->trigger_error("eval: missing 'var' parameter");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if($var == '') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->_compile_template("evaluated template", $var, $source);
|
$this->_compile_template("evaluated template", $var, $source);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user