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,10 +95,8 @@ 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 != '') {
|
||||||
if ($this->_objType == 2) {
|
if ($this->_objType == 2) {
|
||||||
|
Reference in New Issue
Block a user