Skip to content

Commit 4702fab

Browse files
authored
Merge pull request wavelog#2662 from int2001/clublog_empty
Make sure clublog-creds are really(!) there
2 parents 85e4046 + 0e5930c commit 4702fab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

application/models/Clublog_model.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ function disable_sync4call($call, $stations) {
349349
function all_enabled($userid) {
350350
$sql = "select sp.station_callsign, group_concat(sp.station_id) as station_ids from station_profile sp
351351
inner join users u on (u.user_id=sp.user_id)
352-
where u.user_clublog_name is not null and u.user_clublog_password is not null and sp.clublogignore=0 and u.user_id=?
352+
where u.user_clublog_name is not null and u.user_clublog_password is not null
353+
and trim(u.user_clublog_name) != '' and trim(u.user_clublog_password) != ''
354+
and sp.clublogignore=0 and u.user_id=?
353355
group by sp.station_callsign";
354356
$query = $this->db->query($sql, $userid);
355357
return $query;

0 commit comments

Comments
 (0)