Misc fixes

This commit is contained in:
Andreas Kristiansen
2026-01-02 17:25:36 +01:00
parent b35ec004c6
commit 7085871b9e
3 changed files with 8 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class Zonechecker extends CI_Controller {
join station_profile on ' . $this->config->item('table_name') . '.station_id = station_profile.station_id
where station_profile.user_id = ?
and length(col_gridsquare) >= 6';
$params[] = array($this->session->userdata('user_id'));
$params[] = $this->session->userdata('user_id');
if ($station_id && is_numeric($station_id)) {
$sql .= ' and ' . $this->config->item('table_name') . '.station_id = ?';