From 053ceb3dcf7178f17d2aed9df4149cc7f2fcb2b3 Mon Sep 17 00:00:00 2001 From: phl0 Date: Tue, 3 Sep 2024 14:41:02 +0200 Subject: [PATCH] Just give empty result on frequency being 0 --- application/libraries/Frequency.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/libraries/Frequency.php b/application/libraries/Frequency.php index 5be7854fc..1690d85e1 100644 --- a/application/libraries/Frequency.php +++ b/application/libraries/Frequency.php @@ -258,6 +258,10 @@ class Frequency { */ function qrg_conversion($frequency, $r_option = 1, $source_unit = 'Hz', $target_unit = NULL) { + if ($frequency == 0) { + return null; + } + $CI = &get_instance(); // Get the band