From 59cd8bd4c99e3cdea1ac2653fdc73a5524049ca2 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Fri, 18 Nov 2016 15:45:34 +0000 Subject: [PATCH] Set FMN to FM so correct modes selected in the UI. --- application/controllers/radio.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/application/controllers/radio.php b/application/controllers/radio.php index 5e2acadf..2547ad39 100644 --- a/application/controllers/radio.php +++ b/application/controllers/radio.php @@ -101,9 +101,17 @@ foreach ($query->result() as $row) { if($row->radio != "SatPC32") { - echo strtoupper($row->mode); + if(strtoupper($row->mode) == "FMN"){ + echo "FM"; + } else { + echo strtoupper($row->mode); + } } else { - echo strtoupper($row->uplink_mode); + if(strtoupper($row->uplink_mode) == "FMN"){ + echo "FM"; + } else { + echo strtoupper($row->uplink_mode); + } } } }