mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Handle disabled qrz upload settings (correctly)
This commit is contained in:
@@ -249,7 +249,9 @@ class Qrz extends CI_Controller {
|
||||
echo json_encode($data);
|
||||
}
|
||||
} else {
|
||||
$data['status']='QRZ Disabled for station'.$this->security->xss_clean($postData['station_id']);
|
||||
$profile = $this->stations->profile($this->security->xss_clean($postData['station_id']))->row()->station_profile_name;
|
||||
$data['status']='Error';
|
||||
$data['info']='QRZ upload disabled for station profile:'.' '.$profile;
|
||||
echo json_encode($data);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -27,7 +27,7 @@ function ExportQrz(station_id) {
|
||||
$(".card-body").append('<div class="alert alert-danger" role="alert">' + data.info + '</div>');
|
||||
}
|
||||
|
||||
if (data.errormessages.length > 0) {
|
||||
if (data.hasOwnProperty("errormessages") && data.errormessages.length > 0) {
|
||||
$("#qrz_export").append(
|
||||
'<div class="errormessages">\n' +
|
||||
' <div class="card mt-2">\n' +
|
||||
|
||||
Reference in New Issue
Block a user