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.
This commit is contained in:
A. Manual Goldstein
2021-11-13 08:20:30 -08:00
committed by GitHub
parent 4b572b9b31
commit 4d79ffe3bb

View File

@@ -16,7 +16,7 @@ try {
$legacy = $e->getOutput();
$ntp = [
data => [],
'data' => [],
];
[$ntp['data']['stratum'], $ntp['data']['offset'], $ntp['data']['frequency'], $ntp['data']['jitter'],