Handle disabled qrz upload settings (correctly)

This commit is contained in:
phl0
2025-09-08 12:41:58 +02:00
parent d29364ca9c
commit 6e29c0385e
2 changed files with 4 additions and 2 deletions

View File

@@ -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 {