PHP 7.4 fixes

This commit is contained in:
Rasmus Lerdorf
2020-01-27 15:03:50 -08:00
committed by Pierrick Le Gall
parent 8a5a2d9831
commit f9edbd34f7
2 changed files with 6 additions and 4 deletions
@@ -47,7 +47,9 @@ class Smarty_Internal_Runtime_UpdateScope
while (isset($ptr->parent)) {
$ptr = $ptr->parent;
}
$ptr->tpl_vars[$varName] = $tpl->tpl_vars[$varName];
if ($ptr) {
$ptr->tpl_vars[$varName] = $tpl->tpl_vars[$varName];
}
}
}
}