From 0e5930ca37cdb6b279d5b888bf96f73c9cae0597 Mon Sep 17 00:00:00 2001 From: int2001 Date: Tue, 9 Dec 2025 09:59:22 +0000 Subject: [PATCH] Make sure clublog-creds are really(!) there --- application/models/Clublog_model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/models/Clublog_model.php b/application/models/Clublog_model.php index 33e7a2e45..7afb35f18 100644 --- a/application/models/Clublog_model.php +++ b/application/models/Clublog_model.php @@ -349,7 +349,9 @@ class Clublog_model extends CI_Model function all_enabled($userid) { $sql = "select sp.station_callsign, group_concat(sp.station_id) as station_ids from station_profile sp inner join users u on (u.user_id=sp.user_id) - where u.user_clublog_name is not null and u.user_clublog_password is not null and sp.clublogignore=0 and u.user_id=? + where u.user_clublog_name is not null and u.user_clublog_password is not null + and trim(u.user_clublog_name) != '' and trim(u.user_clublog_password) != '' + and sp.clublogignore=0 and u.user_id=? group by sp.station_callsign"; $query = $this->db->query($sql, $userid); return $query;