Handle null or empty DXCC

This commit is contained in:
Joerg (DJ7NT)
2024-03-30 16:25:30 +01:00
committed by GitHub
parent d5573ecfa7
commit de00bcca05

View File

@@ -409,8 +409,8 @@ class DxccFlag
'522' => "\u{1F1FD}\u{1F1F0}" //REPUBLIC OF KOSOVO
);
public function get($dxcc)
{
public function get($dxcc) {
if ($dxcc ?? '' == '') { $dxcc='0'; } // Failover if Empty or NULL
return $this->dxccFlags[$dxcc];
}
}