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:
parent
1d02c56874
commit
b572b26b68
2 changed files with 23 additions and 25 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue