Merge pull request #188 from tinogo/master

Minor optimization for Smarty_Internal_Data::assign()
This commit is contained in:
uwetews
2016-05-03 21:55:46 +02:00

View File

@@ -95,9 +95,7 @@ class Smarty_Internal_Data
{ {
if (is_array($tpl_var)) { if (is_array($tpl_var)) {
foreach ($tpl_var as $_key => $_val) { foreach ($tpl_var as $_key => $_val) {
if ($_key != '') { $this->assign($_key, $_val, $nocache);
$this->assign($_key, $_val, $nocache);
}
} }
} else { } else {
if ($tpl_var != '') { if ($tpl_var != '') {