kopia lustrzana https://github.com/magicbug/Cloudlog
[OQRS] Added Missing func
rodzic
f72d51c005
commit
44869bfbde
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue