From bd44965d6e46513feb5930850cbf8741bcb5b6d7 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Wed, 17 Jan 2024 17:30:14 +0100 Subject: [PATCH] Fixed typos --- application/controllers/Api.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/application/controllers/Api.php b/application/controllers/Api.php index cd101cd84..79bef83ea 100644 --- a/application/controllers/Api.php +++ b/application/controllers/Api.php @@ -132,19 +132,19 @@ class API extends CI_Controller { $this->load->model('api_model'); $this->load->model('stations'); header("Content-type: application/json"); - if(substr($this->api_model->access($key),0,1) == 'r') { /* Checkpermission for _r_eading */ + if(substr($this->api_model->access($key),0,1) == 'r') { /* Check permission for reading */ $this->api_model->update_last_used($key); $userid = $this->api_model->key_userid($key); - $station_ids = array(); + $station_ids = array(); $stations=$this->stations->all_of_user($userid); - foreach ($stations->result() as $row) { + foreach ($stations->result() as $row) { $result['station_id']=$row->station_id; $result['station_profile_name']=$row->station_profile_name; $result['station_gridsquare']=$row->station_gridsquare; $result['station_callsign']=$row->station_callsign;; $result['station_active']=$row->station_active; - array_push($station_ids, $result); - } + array_push($station_ids, $result); + } echo json_encode($station_ids); } else { http_response_code(401); @@ -153,7 +153,7 @@ class API extends CI_Controller { } - /* + /* * * Function: QSO * Task: allows passing of ADIF data to Wavelog @@ -287,7 +287,7 @@ class API extends CI_Controller { { // Get associated station locations for mysql queries $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($logbook_id); - + if (!$logbooks_locations_array) { // Logbook not found http_response_code(404); @@ -366,7 +366,7 @@ class API extends CI_Controller { { // Get associated station locations for mysql queries $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($logbook_id); - + if (!$logbooks_locations_array) { // Logbook not found http_response_code(404);