From 174f0139f181ce83c66fc52d1d688fb46b3ae583 Mon Sep 17 00:00:00 2001 From: mohrt Date: Sat, 29 Jun 2002 16:07:02 +0000 Subject: [PATCH] do nothing if $val is empty --- libs/plugins/function.eval.php | 3 +++ plugins/function.eval.php | 3 +++ 2 files changed, 6 insertions(+) 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);