From ca22a2582724633e579298e4477ed481d80a6b60 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Thu, 2 May 2013 16:57:07 -0400 Subject: [PATCH] fix silly mistake with echoing json twice --- airtime_mvc/application/controllers/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index 1e4789747..1a810ebc5 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -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); }