Just give empty result on frequency being 0

This commit is contained in:
phl0
2024-09-03 14:41:02 +02:00
parent c8b66e495b
commit 053ceb3dcf

View File

@@ -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