issue 2740 rollback json_encode2 function (Because in other feature error )

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12383 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-12-12 01:44:52 +00:00
parent e0e6cdd1b2
commit 8327266214
2 changed files with 47 additions and 1 deletions

View file

@ -290,6 +290,13 @@ class counterModel extends counter
$date = date('Ymd');
$output = $this->getHourlyStatus('week', $date);
$tmp = array();
foreach($output->list AS $key=>$value)
{
$tmp["'".$key."'"] = $value;
}
$output->list = $tmp;
$this->add('data', $output);
}
@ -298,6 +305,13 @@ class counterModel extends counter
$date = date('Ymd');
$output = $this->getHourlyStatus('week', $date, 0, true);
$tmp = array();
foreach($output->list AS $key=>$value)
{
$tmp["'".$key."'"] = $value;
}
$output->list = $tmp;
$this->add('data', $output);
}
}