fix debug console error

This commit is contained in:
mohrt
2001-10-26 15:30:01 +00:00
parent 39061406ee
commit 4190a446aa

View File

@@ -686,14 +686,14 @@ function smarty_func_counter() {
function smarty_func_assign_debug_info($args, &$smarty_obj) {
$assigned_vars = $smarty_obj->_tpl_vars;
ksort($assigned_vars);
if (is_array($smarty_obj->_config[0])) {
if(is_array($smarty_obj->_config[0])) {
$config_vars = $smarty_obj->_config[0];
ksort($config_vars);
$smarty_obj->assign("_debug_config_keys",array_keys($config_vars));
$smarty_obj->assign("_debug_config_vals",array_values($config_vars));
}
$included_templates = $smarty_obj->_included_tpls;
$included_templates = $smarty_obj->_smarty_debug_info;
$smarty_obj->assign("_debug_keys",array_keys($assigned_vars));
$smarty_obj->assign("_debug_vals",array_values($assigned_vars));