From 8c6779e482fafc4ee3eba86e3933ba7da27f9ac4 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 18 Mar 2026 09:00:48 +0100 Subject: [PATCH] Check a little more specific --- application/controllers/Api.php | 6 +-- application/controllers/Awards.php | 4 +- application/controllers/Dashboard.php | 2 +- application/controllers/Logbook.php | 10 ++-- application/controllers/Oqrs.php | 2 +- application/controllers/Visitor.php | 8 ++-- application/controllers/Widgets.php | 2 +- application/libraries/DxclusterCache.php | 2 +- application/models/Accumulate_model.php | 2 +- .../models/Activated_gridmap_model.php | 10 ++-- application/models/Activators_model.php | 4 +- application/models/Counties.php | 4 +- application/models/Dayswithqso_model.php | 10 ++-- application/models/Distancerecords_model.php | 4 +- application/models/Distances_model.php | 2 +- application/models/Eqsl_images.php | 4 +- application/models/Gridmap_model.php | 10 ++-- application/models/Helvetia_model.php | 4 +- application/models/Logbook_model.php | 26 +++++----- application/models/Pota.php | 2 +- application/models/Qsl_model.php | 2 +- application/models/Rac.php | 4 +- application/models/Satellite_model.php | 2 +- application/models/Seven3on73.php | 2 +- application/models/Sig.php | 4 +- application/models/Sota.php | 2 +- application/models/Stats.php | 48 +++++++++---------- application/models/Timeline_model.php | 2 +- application/models/Timeplotter_model.php | 2 +- application/models/Wae.php | 2 +- application/models/Wap.php | 4 +- application/models/Was.php | 4 +- application/models/Wpx.php | 4 +- application/models/Wwff.php | 2 +- application/views/interface_assets/header.php | 2 +- 35 files changed, 102 insertions(+), 102 deletions(-) diff --git a/application/controllers/Api.php b/application/controllers/Api.php index e112ada4a..01a1b28bf 100644 --- a/application/controllers/Api.php +++ b/application/controllers/Api.php @@ -620,7 +620,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[0] == -1) { + if ($logbooks_locations_array[0] === -1) { // Logbook not found http_response_code(404); echo json_encode(['status' => 'failed', 'reason' => "Empty Logbook"]); @@ -706,7 +706,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[0] == -1) { + if ($logbooks_locations_array[0] === -1) { // Logbook not found http_response_code(404); echo json_encode(['status' => 'failed', 'reason' => "Empty Logbook"]); @@ -795,7 +795,7 @@ class API extends CI_Controller { } if ($this->logbooks_model->exists_logbook_id($logbook_id) != false) { $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($logbook_id); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { http_response_code(404); echo json_encode(['status' => 'failed', 'reason' => "logbook with ID ".$logbook_id." has no associated station locations"]); die(); diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 6e77799ae..aa98c7e73 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -925,7 +925,7 @@ class Awards extends CI_Controller { $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -1889,7 +1889,7 @@ class Awards extends CI_Controller { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/controllers/Dashboard.php b/application/controllers/Dashboard.php index c16f61060..ba7da5d26 100644 --- a/application/controllers/Dashboard.php +++ b/application/controllers/Dashboard.php @@ -34,7 +34,7 @@ class Dashboard extends CI_Controller { $data['active_not_linked']=false; } - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { $data['linkedCount']=0; } else { $data['linkedCount']=sizeof($logbooks_locations_array); diff --git a/application/controllers/Logbook.php b/application/controllers/Logbook.php index 1235f65d6..7b0c2a316 100644 --- a/application/controllers/Logbook.php +++ b/application/controllers/Logbook.php @@ -262,7 +262,7 @@ class Logbook extends CI_Controller { $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); $user_default_confirmation = $this->session->userdata('user_default_confirmation'); - if($logbooks_locations_array[0] != -1) { + if($logbooks_locations_array[0] !== -1) { $extrawhere=''; if (isset($user_default_confirmation) && strpos($user_default_confirmation, 'Q') !== false) { $extrawhere="COL_QSL_RCVD='Y'"; @@ -337,7 +337,7 @@ class Logbook extends CI_Controller { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if($logbooks_locations_array[0] != -1) { + if($logbooks_locations_array[0] !== -1) { if($band == "SAT") { $this->db->where('COL_PROP_MODE', 'SAT'); } else { @@ -475,7 +475,7 @@ class Logbook extends CI_Controller { $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); $this->load->model('logbook_model'); - if($logbooks_locations_array[0] != -1) { + if($logbooks_locations_array[0] !== -1) { if($type == "SAT") { $this->db->where('COL_PROP_MODE', 'SAT'); } else { @@ -579,7 +579,7 @@ class Logbook extends CI_Controller { $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); $this->load->model('logbook_model'); - if($logbooks_locations_array[0] != -1) { + if($logbooks_locations_array[0] !== -1) { if($type == "SAT") { $this->db->where('COL_PROP_MODE', 'SAT'); } else { @@ -717,7 +717,7 @@ class Logbook extends CI_Controller { $satellites[$sat->name] = $sat->displayname; } - if($logbooks_locations_array[0] != -1) { + if($logbooks_locations_array[0] !== -1) { $station_ids = implode(',', array_map(function($id) { return (int)$id; }, $logbooks_locations_array)); $bindings = [ diff --git a/application/controllers/Oqrs.php b/application/controllers/Oqrs.php index 82561c8e6..91004f9d8 100644 --- a/application/controllers/Oqrs.php +++ b/application/controllers/Oqrs.php @@ -167,7 +167,7 @@ class Oqrs extends CI_Controller { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] != -1) { + if ($logbooks_locations_array[0] !== -1) { $location_list = "'".implode("','",$logbooks_locations_array)."'"; } else { $location_list = null; diff --git a/application/controllers/Visitor.php b/application/controllers/Visitor.php index 84fb2f16e..e4b603fe7 100644 --- a/application/controllers/Visitor.php +++ b/application/controllers/Visitor.php @@ -72,7 +72,7 @@ class Visitor 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[0] == -1) { + if ($logbooks_locations_array[0] === -1) { show_404(__("Empty Logbook")); } @@ -167,7 +167,7 @@ class Visitor 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[0] == -1) { + if ($logbooks_locations_array[0] === -1) { show_404(__("Empty Logbook")); } } else { @@ -202,7 +202,7 @@ class Visitor 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[0] == -1) { + if ($logbooks_locations_array[0] === -1) { show_404(__("Empty Logbook")); } } else { @@ -470,7 +470,7 @@ class Visitor extends CI_Controller { // Get associated station locations for mysql queries $logbooks_locations_array = $this->stationsetup_model->get_container_relations($logbook_id); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { show_404(__("Empty Logbook")); } } else { diff --git a/application/controllers/Widgets.php b/application/controllers/Widgets.php index 687a5e8fe..5002d2915 100644 --- a/application/controllers/Widgets.php +++ b/application/controllers/Widgets.php @@ -60,7 +60,7 @@ class Widgets 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[0] == -1) { + if ($logbooks_locations_array[0] === -1) { show_404(__("Empty Logbook")); } } else { diff --git a/application/libraries/DxclusterCache.php b/application/libraries/DxclusterCache.php index 4c6ca1ad7..225da3d2c 100644 --- a/application/libraries/DxclusterCache.php +++ b/application/libraries/DxclusterCache.php @@ -105,7 +105,7 @@ class DxclusterCache { $logbook_ids = $this->CI->logbooks_model->list_logbook_relationships($active_logbook); $confirmation_prefs = $this->CI->session->userdata('user_default_confirmation') ?? ''; - if ($logbook_ids[0] == -1) return null; + if ($logbook_ids[0] === -1) return null; return $this->get_logbook_key($user_id, $logbook_ids, $confirmation_prefs); } diff --git a/application/models/Accumulate_model.php b/application/models/Accumulate_model.php index c93b31be2..c1248db87 100644 --- a/application/models/Accumulate_model.php +++ b/application/models/Accumulate_model.php @@ -7,7 +7,7 @@ class Accumulate_model extends CI_Model $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return array(); } diff --git a/application/models/Activated_gridmap_model.php b/application/models/Activated_gridmap_model.php index 1a7975463..6c6fbe76d 100644 --- a/application/models/Activated_gridmap_model.php +++ b/application/models/Activated_gridmap_model.php @@ -7,7 +7,7 @@ class Activated_gridmap_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -59,7 +59,7 @@ class Activated_gridmap_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -110,7 +110,7 @@ class Activated_gridmap_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -163,7 +163,7 @@ class Activated_gridmap_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -256,7 +256,7 @@ class Activated_gridmap_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Activators_model.php b/application/models/Activators_model.php index 95b0c294e..626c82ef9 100644 --- a/application/models/Activators_model.php +++ b/application/models/Activators_model.php @@ -12,7 +12,7 @@ class Activators_model extends CI_Model $mincount = 2; } - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -119,7 +119,7 @@ class Activators_model extends CI_Model $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return array(); } diff --git a/application/models/Counties.php b/application/models/Counties.php index 71929b42d..924dd5089 100644 --- a/application/models/Counties.php +++ b/application/models/Counties.php @@ -27,7 +27,7 @@ class Counties extends CI_Model $CI->load->model('logbooks_model'); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -87,7 +87,7 @@ class Counties extends CI_Model $CI->load->model('logbooks_model'); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Dayswithqso_model.php b/application/models/Dayswithqso_model.php index 215a8476c..58978bb7f 100644 --- a/application/models/Dayswithqso_model.php +++ b/application/models/Dayswithqso_model.php @@ -8,7 +8,7 @@ class Dayswithqso_model extends CI_Model $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -167,7 +167,7 @@ class Dayswithqso_model extends CI_Model $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -186,7 +186,7 @@ class Dayswithqso_model extends CI_Model $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -211,7 +211,7 @@ class Dayswithqso_model extends CI_Model $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -233,7 +233,7 @@ class Dayswithqso_model extends CI_Model $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Distancerecords_model.php b/application/models/Distancerecords_model.php index c9dc521c1..38269616e 100644 --- a/application/models/Distancerecords_model.php +++ b/application/models/Distancerecords_model.php @@ -17,7 +17,7 @@ class Distancerecords_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } $sql = 'SELECT t1.sat, displayname AS sat_displayname, t1.distance, t2.COL_TIME_ON AS time, t2.COL_CALL AS callsign, t2.COL_GRIDSQUARE AS grid, t2.COL_MODE AS mode, t2.COL_PRIMARY_KEY AS primarykey, t2.station_gridsquare AS mygrid @@ -51,7 +51,7 @@ class Distancerecords_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } // First get max distance per sat diff --git a/application/models/Distances_model.php b/application/models/Distances_model.php index 84915a717..3c9a66f5c 100644 --- a/application/models/Distances_model.php +++ b/application/models/Distances_model.php @@ -11,7 +11,7 @@ class Distances_model extends CI_Model $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { header('Content-Type: application/json'); echo json_encode(array('Error' => 'No QSOs found to plot.')); return; diff --git a/application/models/Eqsl_images.php b/application/models/Eqsl_images.php index c5595fad6..7633db583 100644 --- a/application/models/Eqsl_images.php +++ b/application/models/Eqsl_images.php @@ -44,7 +44,7 @@ class Eqsl_images extends CI_Model { function count_eqsl_qso_list() { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return; } $this->db->join($this->config->item('table_name'), 'qso_id = COL_PRIMARY_KEY', 'left outer'); @@ -56,7 +56,7 @@ class Eqsl_images extends CI_Model { function eqsl_qso_list($limit = null, $offset = null) { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return; } $this->db->select('COL_PRIMARY_KEY, qso_id, COL_CALL, COL_MODE, COL_SUBMODE, COL_TIME_ON, COL_BAND, COL_PROP_MODE, COL_SAT_NAME, COL_QSLMSG_RCVD, COL_EQSL_QSLRDATE, image_file'); diff --git a/application/models/Gridmap_model.php b/application/models/Gridmap_model.php index 1ae57df3b..c4689afe1 100644 --- a/application/models/Gridmap_model.php +++ b/application/models/Gridmap_model.php @@ -8,7 +8,7 @@ class Gridmap_model extends CI_Model { $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); } - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -95,7 +95,7 @@ class Gridmap_model extends CI_Model { $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); } - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -178,7 +178,7 @@ class Gridmap_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -255,7 +255,7 @@ class Gridmap_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -368,7 +368,7 @@ class Gridmap_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Helvetia_model.php b/application/models/Helvetia_model.php index 2e1c50cda..384feceee 100644 --- a/application/models/Helvetia_model.php +++ b/application/models/Helvetia_model.php @@ -12,7 +12,7 @@ class helvetia_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -89,7 +89,7 @@ class helvetia_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 33e4be1fb..3e2de813c 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3314,7 +3314,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -3333,7 +3333,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -3465,7 +3465,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -3629,7 +3629,7 @@ class Logbook_model extends CI_Model { $logbooks_locations_array = $StationLocationsArray; } - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return [ 'total' => 0, 'today' => 0, @@ -3694,7 +3694,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } $mode[] = 'SSB'; @@ -3720,7 +3720,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -3743,7 +3743,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -3782,7 +3782,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -3805,7 +3805,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -3827,7 +3827,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -3850,7 +3850,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -3877,7 +3877,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -3899,7 +3899,7 @@ class Logbook_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Pota.php b/application/models/Pota.php index f0b7df8d7..a4f453ab9 100644 --- a/application/models/Pota.php +++ b/application/models/Pota.php @@ -6,7 +6,7 @@ class Pota extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Qsl_model.php b/application/models/Qsl_model.php index 0c1b735ab..77b9c964f 100644 --- a/application/models/Qsl_model.php +++ b/application/models/Qsl_model.php @@ -183,7 +183,7 @@ class Qsl_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Rac.php b/application/models/Rac.php index a73d61b60..a63c649d2 100644 --- a/application/models/Rac.php +++ b/application/models/Rac.php @@ -12,7 +12,7 @@ class rac extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -89,7 +89,7 @@ class rac extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Satellite_model.php b/application/models/Satellite_model.php index 1fb676002..86ad3ca83 100644 --- a/application/models/Satellite_model.php +++ b/application/models/Satellite_model.php @@ -42,7 +42,7 @@ class Satellite_model extends CI_Model { function get_last_worked_sat() { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } $location_list = "'" . implode("','", $logbooks_locations_array) . "'"; diff --git a/application/models/Seven3on73.php b/application/models/Seven3on73.php index d1611c3f1..f62aceb1c 100644 --- a/application/models/Seven3on73.php +++ b/application/models/Seven3on73.php @@ -6,7 +6,7 @@ class Seven3on73 extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Sig.php b/application/models/Sig.php index ba7e8a884..15b2737bc 100644 --- a/application/models/Sig.php +++ b/application/models/Sig.php @@ -7,7 +7,7 @@ class Sig extends CI_Model { $CI->load->model('logbooks_model'); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -28,7 +28,7 @@ class Sig extends CI_Model { $CI->load->model('logbooks_model'); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Sota.php b/application/models/Sota.php index 3d135e5c7..3d4a3910d 100644 --- a/application/models/Sota.php +++ b/application/models/Sota.php @@ -6,7 +6,7 @@ class Sota extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Stats.php b/application/models/Stats.php index bf9c1e23a..1d304ead1 100644 --- a/application/models/Stats.php +++ b/application/models/Stats.php @@ -238,7 +238,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -299,7 +299,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -322,7 +322,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -383,7 +383,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -405,7 +405,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -425,7 +425,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -445,7 +445,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -467,7 +467,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -489,7 +489,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -509,7 +509,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -549,7 +549,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -570,7 +570,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -744,7 +744,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); $binding=[]; - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -776,7 +776,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); $binding=[]; - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -809,7 +809,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -831,7 +831,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -849,7 +849,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -874,7 +874,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -910,7 +910,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -940,7 +940,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -971,7 +971,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -1018,7 +1018,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -1101,7 +1101,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -1135,7 +1135,7 @@ $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Timeline_model.php b/application/models/Timeline_model.php index c0e3a0e4a..e53ef7529 100644 --- a/application/models/Timeline_model.php +++ b/application/models/Timeline_model.php @@ -6,7 +6,7 @@ class Timeline_model extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Timeplotter_model.php b/application/models/Timeplotter_model.php index 1b1529a65..5080b6d0d 100644 --- a/application/models/Timeplotter_model.php +++ b/application/models/Timeplotter_model.php @@ -9,7 +9,7 @@ class Timeplotter_model extends CI_Model $CI->load->model('logbooks_model'); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { header('Content-Type: application/json'); $data['error'] = 'No QSOs found to plot!'; echo json_encode($data); diff --git a/application/models/Wae.php b/application/models/Wae.php index e6e1d0fef..a86390c15 100644 --- a/application/models/Wae.php +++ b/application/models/Wae.php @@ -34,7 +34,7 @@ class WAE extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] != -1) { + if ($logbooks_locations_array[0] !== -1) { // Create the location_list string $this->location_list = "'" . implode("','", $logbooks_locations_array) . "'"; } else { diff --git a/application/models/Wap.php b/application/models/Wap.php index 30d37fc9e..20027f073 100644 --- a/application/models/Wap.php +++ b/application/models/Wap.php @@ -14,7 +14,7 @@ class wap extends CI_Model { $CI->load->model('logbooks_model'); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -91,7 +91,7 @@ class wap extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Was.php b/application/models/Was.php index 275961129..c700b0ba5 100644 --- a/application/models/Was.php +++ b/application/models/Was.php @@ -11,7 +11,7 @@ class was extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } @@ -90,7 +90,7 @@ class was extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/models/Wpx.php b/application/models/Wpx.php index d886ecfb4..32da1014d 100644 --- a/application/models/Wpx.php +++ b/application/models/Wpx.php @@ -12,7 +12,7 @@ class WPX extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } $this->load->model('bands'); @@ -335,7 +335,7 @@ class WPX extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } $location_list = "'".implode("','",$logbooks_locations_array)."'"; diff --git a/application/models/Wwff.php b/application/models/Wwff.php index a47169b9e..89168be5b 100644 --- a/application/models/Wwff.php +++ b/application/models/Wwff.php @@ -6,7 +6,7 @@ class Wwff extends CI_Model { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] == -1) { + if ($logbooks_locations_array[0] === -1) { return null; } diff --git a/application/views/interface_assets/header.php b/application/views/interface_assets/header.php index f33600fcd..a47cb7027 100644 --- a/application/views/interface_assets/header.php +++ b/application/views/interface_assets/header.php @@ -494,7 +494,7 @@ logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - if ($logbooks_locations_array[0] != -1) { + if ($logbooks_locations_array[0] !== -1) { $location_list = "'" . implode("','", $logbooks_locations_array) . "'"; } else { $location_list = null;