[OQRS] Added Missing func

pull/1886/head
Peter Goodhall 2022-12-30 21:55:34 +00:00
rodzic f72d51c005
commit 44869bfbde
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -304,4 +304,16 @@ class Oqrs_model extends CI_Model {
return 0;
}
}
function getOqrsStationsFromSlug($logbook_id) {
$sql = 'SELECT station_callsign FROM `station_logbooks_relationship` JOIN `station_profile` ON station_logbooks_relationship.station_location_id = station_profile.station_id WHERE station_profile.oqrs = 1 AND station_logbook_id = '.$logbook_id.';';
$query = $this->db->query($sql);
if ($query->num_rows() > 0) {
return true;
} else {
return false;
}
}
}