mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
remove property $undefined. "null" is used literally instead
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
||||
- remove property $undefined. "null" is used literally instead (messju)
|
||||
|
||||
Version 2.6.0 (Nov 19, 2003)
|
||||
----------------------------
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user