Fix a Error 500 on saving SFLE-QSOs

This commit is contained in:
int2001
2025-12-04 13:46:43 +00:00
parent 65862dd9d8
commit 948a5a2f18
2 changed files with 3 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ class SimpleFLE extends CI_Controller {
$this->load->model('logbook_model');
$qsos = json_decode($qsos, true);
$station_id = $qsos[0]['station_id']; // we can trust this value
$station_id = $qsos[0]['station_id']; // we can trust this value, but only because it's checked at bulk-import!
$result = $this->logbook_model->import_bulk($qsos, $station_id);
$bulk_result = $result['errormessage'];

View File

@@ -4560,7 +4560,8 @@ class Logbook_model extends CI_Model {
$amsat_qsos = [];
$today = time();
if (!$this->stations->check_station_is_accessible($station_id) && $apicall == false) {
return 'Station not accessible<br>';
$custom_errors['errormessage'] = 'Station not accessible<br>';
return $custom_errors;
}
$station_id_ok = true;
$station_profile = $this->stations->profile_clean($station_id);