[API] Corrected variable name and check

This commit is contained in:
Andreas
2023-06-15 09:26:17 +02:00
parent 563554dae5
commit 33a81154b6
2 changed files with 2 additions and 2 deletions

View File

@@ -427,7 +427,7 @@ class Stations extends CI_Model {
public function check_station_against_user($stationid, $userid) {
$this->db->select('station_id');
$this->db->where('user_id', $userid);
$this->db->where('station_id', $id);
$this->db->where('station_id', $stationid);
$query = $this->db->get('station_profile');
if ($query->num_rows() == 1) {
return true;