From b523bfa6831e05bd8def66f0507330704c641487 Mon Sep 17 00:00:00 2001 From: kb-light <14014119+kb-light@users.noreply.github.com> Date: Fri, 30 Sep 2022 16:12:48 +0000 Subject: [PATCH] [Cat] Some fixes for backward compatibility with CloudLogCatQt --- application/models/Cat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Cat.php b/application/models/Cat.php index b1b5b20f..ba4671f7 100644 --- a/application/models/Cat.php +++ b/application/models/Cat.php @@ -38,14 +38,14 @@ } if (isset($result['frequency_rx'])) { $data['frequency_rx'] = $result['frequency_rx']; - } else if (isset($result['downlink_freq'])) { + } else if (isset($result['downlink_freq']) && $result['downlink_freq'] != "NULL") { $data['frequency_rx'] = $result['downlink_freq']; } else { $data['frequency_rx'] = NULL; } if (isset($result['mode_rx'])) { $data['mode_rx'] = $result['mode_rx']; - } else if (isset($result['downlink_freq'])) { + } else if (isset($result['downlink_mode']) && $result['downlink_mode'] != "NULL") { $data['mode_rx'] = $result['downlink_mode']; } else { $data['mode_rx'] = NULL;