diff --git a/libs/plugins/function.eval.php b/libs/plugins/function.eval.php index c1d7a116..b17338fa 100644 --- a/libs/plugins/function.eval.php +++ b/libs/plugins/function.eval.php @@ -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); diff --git a/plugins/function.eval.php b/plugins/function.eval.php index c1d7a116..b17338fa 100644 --- a/plugins/function.eval.php +++ b/plugins/function.eval.php @@ -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);