mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Advanced Logbook] Hide / if frequency rx is 0
This commit is contained in:
@@ -1334,13 +1334,17 @@ class QSO
|
|||||||
private function getFormattedFrequency(): string
|
private function getFormattedFrequency(): string
|
||||||
{
|
{
|
||||||
$label = '';
|
$label = '';
|
||||||
if ($this->frequency !== 0 && $this->frequency !== '') {
|
if ($this->frequency) {
|
||||||
$label .= $this->CI->frequency->qrg_conversion($this->frequency ?? 0);
|
$label .= $this->CI->frequency->qrg_conversion($this->frequency ?? 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->frequencyRX !== '' && $this->frequencyRX !== 0 && $this->frequency !== '' && $this->frequency !== 0) {
|
if ($this->frequencyRX && $this->frequency) {
|
||||||
$label .= "/" . $this->CI->frequency->qrg_conversion($this->frequencyRX ?? 0);
|
$converted_rx = $this->CI->frequency->qrg_conversion($this->frequencyRX);
|
||||||
|
if ($converted_rx) {
|
||||||
|
$label .= "/" . $converted_rx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return trim($label);
|
return trim($label);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user