From 5494f03f60445774ee5a496178fb9d9abdf84983 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 18 Dec 2018 18:24:01 +0000 Subject: [PATCH] Cleaned up the Radio page so that correct values are shown #243 --- application/controllers/Radio.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/application/controllers/Radio.php b/application/controllers/Radio.php index f1fcba8c..f23de952 100644 --- a/application/controllers/Radio.php +++ b/application/controllers/Radio.php @@ -37,9 +37,19 @@ { echo ""; echo "".$row->radio.""; - echo "".$row->frequency.""; - echo "".$row->mode.""; - echo "".$row->timestamp."" ; + if($row->frequency != "0") { + echo "".$row->frequency.""; + } else { + echo "".$row->downlink_freq." / ".$row->uplink_freq.""; + } + + if($row->mode != "non") { + echo "".$row->mode.""; + } else{ + echo "".$row->uplink_mode.""; + } + $phpdate = strtotime($row->timestamp); + echo "".date('H:i:s d-m-y', $phpdate)."" ; echo "id."\" >\"Delete\"" ; echo ""; }