mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fix a Error 500 on saving SFLE-QSOs
This commit is contained in:
@@ -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'];
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user