Fix more return checks for list_logbook_relationships

This commit is contained in:
phl0
2026-03-15 11:03:29 +01:00
parent 5c94cf419b
commit c92c297bc6
33 changed files with 106 additions and 97 deletions

View File

@@ -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) {
if ($logbooks_locations_array[0] == -1) {
header('Content-Type: application/json');
$data['error'] = 'No QSOs found to plot!';
echo json_encode($data);