mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +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)
|
Version 2.6.10 (Aug 5, 2005)
|
||||||
----------------------------
|
----------------------------
|
||||||
|
@@ -1055,9 +1055,12 @@ class Smarty
|
|||||||
{
|
{
|
||||||
if(!isset($name)) {
|
if(!isset($name)) {
|
||||||
return $this->_tpl_vars;
|
return $this->_tpl_vars;
|
||||||
}
|
} elseif(isset($this->_tpl_vars[$name])) {
|
||||||
if(isset($this->_tpl_vars[$name])) {
|
|
||||||
return $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