Merge pull request #2583 from int2001/reassign_fix

Bugfixing: Reassign QSOs
This commit is contained in:
Peter Goodhall 2023-10-18 13:31:49 +01:00 committed by GitHub
commit e31e5bafb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4148,7 +4148,11 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray =
);
$this->db->where(array('station_id' => NULL));
$this->db->where('col_station_callsign', $station_callsign);
if ($station_callsign == '') {
$this->db->where(array('col_station_callsign' => NULL));
} else {
$this->db->where('col_station_callsign', $station_callsign);
}
$this->db->update($this->config->item('table_name'), $data);
if ($this->db->affected_rows() > 0) {
return TRUE;