CC-3336: Refactor schedule API used by pypo

-make sure that empty arrays are objects and not arrays
-clean up some comments
This commit is contained in:
Martin Konecny 2012-02-28 15:32:18 -05:00
parent 1d02c56874
commit b572b26b68
2 changed files with 23 additions and 25 deletions

View file

@ -287,8 +287,8 @@ class ApiController extends Zend_Controller_Action
PEAR::setErrorHandling(PEAR_ERROR_RETURN);
$result = Application_Model_Schedule::GetScheduledPlaylists();
echo json_encode($result);
$data = Application_Model_Schedule::GetScheduledPlaylists();
echo json_encode($data, JSON_FORCE_OBJECT);
}
public function notifyMediaItemStartPlayAction()