diff --git a/application/controllers/Simplefle.php b/application/controllers/Simplefle.php
index a12284aaa..e42bf5a93 100644
--- a/application/controllers/Simplefle.php
+++ b/application/controllers/Simplefle.php
@@ -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'];
diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php
index 5a02ae264..aaccd94d6 100644
--- a/application/models/Logbook_model.php
+++ b/application/models/Logbook_model.php
@@ -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
';
+ $custom_errors['errormessage'] = 'Station not accessible
';
+ return $custom_errors;
}
$station_id_ok = true;
$station_profile = $this->stations->profile_clean($station_id);