diff --git a/ajax.php b/ajax.php index 3f96fe1..386af60 100644 --- a/ajax.php +++ b/ajax.php @@ -26,19 +26,31 @@ if ($_GET['section'] == "localTx") { if (defined("ENABLEXTDLOOKUP")) { if ($listElem[6] == "RF" && ($listElem[1]=="D-Star" || startsWith($listElem[1], "DMR") || $listElem[1]=="YSF" || $listElem[1]=="P25")) { $listElem[3] = getName($listElem[2]); - if (constant("SHOWQRZ") && $listElem[2] !== "??????????" && !is_numeric($listElem[2])) { - $listElem[2] = "".str_replace("0","Ø",$listElem[2]).""; - } else { - $listElem[2] = "".$listElem[2].""; + if ($listElem[2] !== "??????????") { + if (!is_numeric($listElem[2])) { + if (constant("SHOWQRZ")) { + $listElem[2] = "".str_replace("0","Ø",$listElem[2]).""; + } else { + $listElem[2] = "".$listElem[2].""; + } + } else { + $listElem[2] = "".$listElem[2].""; + } } array_push($lastHeard, $listElem); } } else { if ($listElem[5] == "RF" && ($listElem[1]=="D-Star" || startsWith($listElem[1], "DMR") || $listElem[1]=="YSF" || $listElem[1]=="P25")) { - if (constant("SHOWQRZ") && $listElem[2] !== "??????????" && !is_numeric($listElem[2])) { - $listElem[2] = "".str_replace("0","Ø",$listElem[2]).""; - } else { - $listElem[2] = "".$listElem[2].""; + if ($listElem[2] !== "??????????") { + if (!is_numeric($listElem[2])) { + if (constant("SHOWQRZ")) { + $listElem[2] = "".str_replace("0","Ø",$listElem[2]).""; + } else { + $listElem[2] = "".$listElem[2].""; + } + } else { + $listElem[2] = "".$listElem[2].""; + } } array_push($lastHeard, $listElem); } @@ -220,4 +232,4 @@ if ($_GET['section'] == "sysinfo") { \ No newline at end of file +?> diff --git a/include/functions.php b/include/functions.php index 87a4d53..8002d92 100644 --- a/include/functions.php +++ b/include/functions.php @@ -360,12 +360,17 @@ function getLastHeard($logLines, $onlyLast) { $listElem[3] = "---"; } } - if (constant("SHOWQRZ") && $listElem[2] !== "??????????" && !is_numeric($listElem[2])) { - $listElem[2] = "".str_replace("0","Ø",$listElem[2]).""; - } else { - $listElem[2] = "".$listElem[2].""; + if ($listElem[2] !== "??????????") { + if (!is_numeric($listElem[2])) { + if (constant("SHOWQRZ")) { + $listElem[2] = "".str_replace("0","Ø",$listElem[2]).""; + } else { + $listElem[2] = "".$listElem[2].""; + } + } else { + $listElem[2] = "".$listElem[2].""; + } } - array_push($lastHeard, $listElem); $counter++; } diff --git a/include/lh.php b/include/lh.php index 3206e25..44be830 100644 --- a/include/lh.php +++ b/include/lh.php @@ -34,11 +34,17 @@ for ($i = 0; ($i < $totalLH); $i++) { echo"