Fix county format in ADIF export

pull/2654/head
Andreas 2023-11-04 18:31:39 +01:00
rodzic f3fa563022
commit 39bb190fd2
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -198,7 +198,13 @@ class AdifHelper {
$line .= $this->getAdifFieldLine("MY_ITU_ZONE", $qso->station_itu);
$line .= $this->getAdifFieldLine("MY_CNTY", $qso->station_cnty);
if($qso->state) {
$county = trim($qso->state) . "," . trim($qso->station_cnty);
} else {
$county = trim($qso->station_cnty);
}
$line .= $this->getAdifFieldLine("MY_CNTY", $county);
$line .= $this->getAdifFieldLine("MY_SIG", $qso->station_sig);