Now displays worked/confirmed icons/lines

This commit is contained in:
Andreas Kristiansen
2024-04-09 20:21:25 +02:00
parent 83bc925248
commit cff683703e
3 changed files with 122 additions and 11 deletions

View File

@@ -174,6 +174,19 @@ class Stationsetup_model extends CI_Model {
return array(-1); // Put some default-Value here, if no relation found
}
}
function public_slug_exists_userid($slug) {
$this->db->where('public_slug', $this->security->xss_clean($slug));
$query = $this->db->get('station_logbooks');
if ($query->num_rows() > 0){
foreach ($query->result() as $row) {
return $row->user_id;
}
} else {
return -1;
}
}
}
?>