mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- bugfix getTemplateVars() should return 'null' instead dropping E_NOTICE on an unassigned variable
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
===== SVN trunk =====
|
||||
06/12/2010
|
||||
- bugfix getTemplateVars() should return 'null' instead dropping E_NOTICE on an unassigned variable
|
||||
|
||||
05/12/2010
|
||||
- bugfix missing declaration of $smarty in Smarty class
|
||||
- bugfix empty($foo) in {if} did drop a notice when $foo was not assigned
|
||||
|
@@ -184,7 +184,7 @@ class Smarty_Internal_Data {
|
||||
function getTemplateVars($varname = null, $_ptr = null, $search_parents = true)
|
||||
{
|
||||
if (isset($varname)) {
|
||||
$_var = $this->getVariable($varname, $_ptr, $search_parents);
|
||||
$_var = $this->getVariable($varname, $_ptr, $search_parents, false);
|
||||
if (is_object($_var)) {
|
||||
return $_var->value;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user