From c1893cd84742f72a272f0d4c0d47a258067291e3 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Thu, 3 Nov 2016 09:12:23 +0000 Subject: [PATCH] Fixing Actual Current Mode when disabled extdlookup and adding network-name after DMR-Master-address --- include/functions.php | 2 +- include/repeaterinfo.php | 2 +- version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/functions.php b/include/functions.php index 20e9123..7983166 100644 --- a/include/functions.php +++ b/include/functions.php @@ -400,7 +400,7 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) { if (startsWith($mode, "DMR")) { $mode = "DMR"; } - if ($listElem[7] ==="") { + if (defined("ENABLEXTDLOOKUP") && $listElem[7] == null || !defined("ENABLEXTDLOOKUP") && $listElem[6] == null) { return "".$mode.""; } else { $now = new DateTime(); diff --git a/include/repeaterinfo.php b/include/repeaterinfo.php index ee69f65..bbf775e 100644 --- a/include/repeaterinfo.php +++ b/include/repeaterinfo.php @@ -64,7 +64,7 @@ } else { echo ""; } - echo getConfigItem("DMR Network", "Address", $mmdvmconfigs).""; + echo getConfigItem("DMR Network", "Address", $mmdvmconfigs)." (".getDMRNetwork().")"; ?>