From e4138dc22df9a4f151921662e563959d7974ac0c Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 14 Dec 2023 16:08:17 +0100 Subject: [PATCH] Also check qrz API key for empty string --- application/models/User_model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/models/User_model.php b/application/models/User_model.php index 61e5aba4..7a7d5b6e 100644 --- a/application/models/User_model.php +++ b/application/models/User_model.php @@ -89,6 +89,7 @@ class User_Model extends CI_Model { function hasQrzKey($user_id) { $this->db->where('station_profile.qrzapikey is not null'); + $this->db->where('station_profile.qrzapikey != ""'); $this->db->join('station_profile', 'station_profile.user_id = '.$user_id); $query = $this->db->get($this->config->item('auth_table'));