Optimization for Smarty_Internal_Data::assign()

Removed the extra if block, when an array has been given as the $tpl_var argument, because in the else block there is already a "not empty check".
This commit is contained in:
Tino Goratsch
2016-02-19 09:44:07 +01:00
parent 0735ff9605
commit 8dc8fc23c8

View File

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