mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
Merge pull request #188 from tinogo/master
Minor optimization for Smarty_Internal_Data::assign()
This commit is contained in:
@@ -95,9 +95,7 @@ class Smarty_Internal_Data
|
||||
{
|
||||
if (is_array($tpl_var)) {
|
||||
foreach ($tpl_var as $_key => $_val) {
|
||||
if ($_key != '') {
|
||||
$this->assign($_key, $_val, $nocache);
|
||||
}
|
||||
$this->assign($_key, $_val, $nocache);
|
||||
}
|
||||
} else {
|
||||
if ($tpl_var != '') {
|
||||
|
Reference in New Issue
Block a user