From 6e8dddd059b608ea5809c7bb4c3c5e040edc3be2 Mon Sep 17 00:00:00 2001 From: Rob Vella Date: Sun, 7 Feb 2021 15:51:38 -0800 Subject: [PATCH] Merge in changes from win-old --- fetchData.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fetchData.php b/fetchData.php index 92db654..ecbf8ce 100644 --- a/fetchData.php +++ b/fetchData.php @@ -3,10 +3,10 @@ $streamFile = __DIR__.'/storage/stream.txt'; $cmd = $_GET['cmd'] ?? null; -$node = intval($_GET['node'] ?? null); +$node = $_GET['node'] ?? null; $type = intval($_GET['type'] ?? null); -header("Cache-Control: max-age=0"); +header("Cache-Control: no-cache, max-age=0"); if ($cmd === "log" || $cmd == "logText") { // $irlpData = file_get_contents("http://www3.winsystem.org/monitor/ajax-logtail.php"); @@ -42,9 +42,9 @@ function fetchNodeInfoAllstar($node) { return [ 'node' => $node, - 'callsign' => $row[1], - 'desc' => $row[2], - 'location' => $row[3] + 'callsign' => $row[1] ?? '', + 'desc' => $row[2] ?? '', + 'location' => $row[3] ?? '' ]; }