fix silly mistake with echoing json twice

This commit is contained in:
Martin Konecny 2013-05-02 16:57:07 -04:00
parent f2564cf732
commit ca22a25827
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ class ApiController extends Zend_Controller_Action
$data = Application_Model_Schedule::getSchedule();
header("Content-Type: application/json");
echo json_encode($data, JSON_FORCE_OBJECT);
$data = json_encode($data, JSON_FORCE_OBJECT);
$this->_helper->json->sendJson($data, false, true);
}