From 4d79ffe3bb5a8d85f2e15aa5cbfccbc812ea7cc6 Mon Sep 17 00:00:00 2001 From: "A. Manual Goldstein" <34269555+amanualgoldstein@users.noreply.github.com> Date: Sat, 13 Nov 2021 08:20:30 -0800 Subject: [PATCH] PHP8 compatibility for ntp-server polling app (#13513) It appears that the ntp-server application script uses an undefined constant when initializing its data array. The use of undefined constants previously generated a warning, and since PHP 8.0 generates an error instead. --- includes/polling/applications/ntp-server.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/applications/ntp-server.inc.php b/includes/polling/applications/ntp-server.inc.php index 307d8f53d2..17f23283ab 100644 --- a/includes/polling/applications/ntp-server.inc.php +++ b/includes/polling/applications/ntp-server.inc.php @@ -16,7 +16,7 @@ try { $legacy = $e->getOutput(); $ntp = [ - data => [], + 'data' => [], ]; [$ntp['data']['stratum'], $ntp['data']['offset'], $ntp['data']['frequency'], $ntp['data']['jitter'],