Show all HoN-Entries if there are multiple ones in src-file

This commit is contained in:
int2001
2026-02-19 06:13:03 +00:00
parent 50fefc860d
commit f1d3fa0183
4 changed files with 17 additions and 24 deletions

View File

@@ -184,9 +184,9 @@ class Lookup extends CI_Controller {
$uppercase_callsign = strtoupper($call);
$this->load->model('Pota');
$query = $this->Pota->ham_of_note($uppercase_callsign);
if ($query->row()) {
if ($query->num_rows() > 0) {
header('Content-Type: application/json');
echo json_encode($query->row());
echo json_encode($query->result());
} else {
return null;
}