mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
return valid reference in get_template_vars() when given var is non-existant
This commit is contained in:
4
NEWS
4
NEWS
@@ -1,4 +1,6 @@
|
||||
- add escape type "urlpathinfo" to escape modifier
|
||||
- return valid reference in get_template_vars() when given var is
|
||||
non-existant (monte)
|
||||
- add escape type "urlpathinfo" to escape modifier (monte)
|
||||
|
||||
Version 2.6.10 (Aug 5, 2005)
|
||||
----------------------------
|
||||
|
@@ -1055,9 +1055,12 @@ class Smarty
|
||||
{
|
||||
if(!isset($name)) {
|
||||
return $this->_tpl_vars;
|
||||
}
|
||||
if(isset($this->_tpl_vars[$name])) {
|
||||
} elseif(isset($this->_tpl_vars[$name])) {
|
||||
return $this->_tpl_vars[$name];
|
||||
} else {
|
||||
// var non-existant, return valid reference
|
||||
$_tmp = null
|
||||
return $_tmp;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user