diff --git a/application/models/Clublog_model.php b/application/models/Clublog_model.php index c0bcfff26..024131ccf 100644 --- a/application/models/Clublog_model.php +++ b/application/models/Clublog_model.php @@ -99,7 +99,11 @@ class Clublog_model extends CI_Model } else { $return = "Error " . $response; log_message('error', 'Clublog upload for ' . $station_row->station_callsign . ' failed reason ' . $response); - if (substr($response,0,13) == 'Upload denied') { // Deactivate Upload for Station if Clublog rejects it (prevent being blacklisted at Clublog) + if (substr($response,0,13) == 'Upload denied') { // Deactivate Upload for Station if Clublog rejects it due to non-configured Call (prevent being blacklisted at Clublog) + $sql = 'update station_profile set clublogignore = 1 where station_id = ?'; + $this->db->query($sql,$station_row->station_id); + } + if (substr($response,0,14) == 'Login rejected') { // Deactivate Upload for Station if Clublog rejects it due to wrong credentials (prevent being blacklisted at Clublog) $sql = 'update station_profile set clublogignore = 1 where station_id = ?'; $this->db->query($sql,$station_row->station_id); }