diff --git a/api.php b/api.php index 7e425a4..1b72969 100644 --- a/api.php +++ b/api.php @@ -43,12 +43,12 @@ switch($request[0]) { case 'list': /* APIDOC: locations/list description(lists locations at the current conference) - return(list array) + return(locations array) */ $locationData = getLocationList($_SESSION['conferences_id']); if(is_array($locationData)){ $ret['status'] = 'ok'; - $ret['list'] = $locationData; + $ret['locations'] = $locationData; }else{ $ret['status'] = 'error'; $ret['error'] = $locationData; @@ -74,12 +74,12 @@ switch($request[0]) { case 'list': /* APIDOC: events/list description(gets a list of all events at the current conference, and team information if applicable) - return(list array) + return(events array) */ $eventData = getEventList($_SESSION['conferences_id'], $school_id); if(is_array($eventData)){ $ret['status'] = 'ok'; - $ret['list'] = $eventData; + $ret['events'] = $eventData; }else{ $ret['status'] = 'error'; $ret['error'] = $eventData;