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);
     }