cvs: smarty / NEWS Smarty.class.php

From: Date: Tue, 09 Jul 2002 01:18:01 +0000
Subject: cvs: smarty / NEWS Smarty.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-181@lists.php.net to get a copy of this message
mohrt Mon Jul 8 21:18:01 2002 EDT Modified files: /smarty NEWS Smarty.class.php Log: change tests in append and assign to != '' instead of empty(), which is more accurate Index: smarty/NEWS diff -u smarty/NEWS:1.213 smarty/NEWS:1.214 --- smarty/NEWS:1.213 Wed Jun 26 10:51:10 2002 +++ smarty/NEWS Mon Jul 8 21:18:00 2002 @@ -1,3 +1,6 @@ + - change logic in assign() and append() to test var names + against != '' instead of empty() (Monte) + - fix PHP notice in append() function (Monte) - allow $plugins_dir to be an array of directories (Andreas Kossmeier, Monte) - move debug.tpl to SMARTY_DIR, add to constructor (Monte) Index: smarty/Smarty.class.php diff -u smarty/Smarty.class.php:1.298 smarty/Smarty.class.php:1.299 --- smarty/Smarty.class.php:1.298 Mon Jul 8 10:58:51 2002 +++ smarty/Smarty.class.php Mon Jul 8 21:18:00 2002 @@ -226,12 +226,12 @@ { if (is_array($tpl_var)){ foreach ($tpl_var as $key => $val) { - if (!empty($key) && isset($val)) { + if ($key != '' && isset($val)) { $this->_tpl_vars[$key] = $val; } } } else { - if (!empty($tpl_var) && isset($value)) + if ($tpl_var != '' && isset($value)) $this->_tpl_vars[$tpl_var] = $value; } $this->_extract = true;

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