cvs: smarty /plugins function.eval.php

From: Date: Sat, 29 Jun 2002 16:07:02 +0000
Subject: cvs: smarty /plugins function.eval.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-169@lists.php.net to get a copy of this message
mohrt Sat Jun 29 12:07:02 2002 EDT Modified files: /smarty/plugins function.eval.php Log: do nothing if $val is empty Index: smarty/plugins/function.eval.php diff -u smarty/plugins/function.eval.php:1.3 smarty/plugins/function.eval.php:1.4 --- smarty/plugins/function.eval.php:1.3 Sat Jun 29 12:04:41 2002 +++ smarty/plugins/function.eval.php Sat Jun 29 12:07:02 2002 @@ -16,6 +16,9 @@ $this->trigger_error("eval: missing 'var' parameter"); return; } + if($var == '') { + return; + } $this->_compile_template("evaluated template", $var, $source);

« previous php.smarty.cvs (#169) next »