Fix DXCC which are undefined

This commit is contained in:
int2001
2025-06-26 18:36:30 +00:00
parent 4342ff10d7
commit e10ac8b7b8

View File

@@ -259,7 +259,7 @@ class QSO
} else {
$this->dxcc = (($data['dxccname'] ?? null) === null) ? '- NONE -' : '<a href="javascript:spawnLookupModal('.$data['COL_DXCC'].',\'dxcc\');">'.ucwords(strtolower($data['dxccname']), "- (/").'</a>';
}
$this->dxccid = $data['adif'];
$this->dxccid = $data['adif'] ?? '0';
$this->iota = ($data['COL_IOTA'] === null) ? '' : $this->getIotaLink($data['COL_IOTA']);
if (array_key_exists('end', $data)) {
$this->end = ($data['end'] === null) ? null : DateTime::createFromFormat("Y-m-d", $data['end'], new DateTimeZone('UTC'));