remove property $undefined. "null" is used literally instead

This commit is contained in:
messju
2003-11-22 00:32:38 +00:00
parent 0157c56198
commit c5b552163c
2 changed files with 4 additions and 9 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- remove property $undefined. "null" is used literally instead (messju)
Version 2.6.0 (Nov 19, 2003)
----------------------------

View File

@@ -342,13 +342,6 @@ class Smarty
*/
var $global_assign = array('HTTP_SERVER_VARS' => array('SCRIPT_NAME'));
/**
* The value of "undefined". Leave it alone :-)
*
* @var null
*/
var $undefined = null;
/**
* This indicates which filters are automatically loaded into Smarty.
*
@@ -602,14 +595,14 @@ class Smarty
if (isset($GLOBALS[$key][$var])) {
$this->assign($var, $GLOBALS[$key][$var]);
} else {
$this->assign($var, $this->undefined);
$this->assign($var, null);
}
}
} else {
if (isset($GLOBALS[$var_name])) {
$this->assign($var_name, $GLOBALS[$var_name]);
} else {
$this->assign($var_name, $this->undefined);
$this->assign($var_name, null);
}
}
}