mirror of
https://github.com/smarty-php/smarty.git
synced 2025-12-05 00:39:23 +01:00
- bugfix getTemplateVars() should return 'null' instead dropping E_NOTICE on an unassigned variable
This commit is contained in:
@@ -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