diff --git a/src/QSLManager/QSO.php b/src/QSLManager/QSO.php index 073c6c767..726fd762b 100644 --- a/src/QSLManager/QSO.php +++ b/src/QSLManager/QSO.php @@ -205,7 +205,7 @@ class QSO $this->qrz = $this->getQrzString($data, $custom_date_format); $this->cqzone = $data['COL_CQZ'] === null ? '' : $this->getCqLink($data['COL_CQZ']); - $this->ituzone = $data['COL_ITUZ'] ?? ''; + $this->ituzone = $data['COL_ITUZ'] === null ? '' : $this->getItuLink($data['COL_ITUZ']); $this->state = ($data['COL_STATE'] === null) ? '' :$data['COL_STATE']; if ($data['adif'] == '0') { $this->dxcc = ''.$data['dxccname'].''; @@ -243,6 +243,17 @@ class QSO return $cqz; } + /** + * @return string + */ + function getItuLink($ituz): string + { + if ($ituz > '0' && $ituz <= '90') { + return ''.$ituz.''; + } + return $ituz; + } + /** * @return string */