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