Implemented enrichment of spot

This commit is contained in:
int2001
2023-07-21 05:45:56 +00:00
parent 99e46bf1fc
commit 45161142ef
3 changed files with 42 additions and 6 deletions

View File

@@ -12,12 +12,12 @@ class Dxcluster extends CI_Controller {
function qrg_lookup($qrg) {
$call_found=$this->logbook_model->qrg_lookup($qrg);
$call_found=$this->logbook_model->dxc_qrg_lookup($this->security->xss_clean($qrg));
header('Content-Type: application/json');
if ($call_found) {
header('Content-Type: application/json');
echo json_encode($call_found, JSON_PRETTY_PRINT);
} else {
echo '{ error: "not found" }';
echo '{ "error": "not found" }';
}
}
@@ -30,7 +30,7 @@ class Dxcluster extends CI_Controller {
header('Content-Type: application/json');
echo json_encode($dxcc, JSON_PRETTY_PRINT);
} else {
echo '{ error: "not found" }';
echo '{ "error": "not found" }';
}
}
}