tpl_vars[$tpl_var])) { $data->tpl_vars[$tpl_var] = new Smarty_Variable(); } if (!is_array($data->tpl_vars[$tpl_var]->value)) { settype($data->tpl_vars[$tpl_var]->value, 'array'); } if ($merge && is_array($value)) { foreach ($value as $_key => $_val) { $data->tpl_vars[$tpl_var]->value[$_key] = &$value[$_key]; } } else { $data->tpl_vars[$tpl_var]->value[] = &$value; } } return $data; } }