mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
GitHub
parent
4b572b9b31
commit
4d79ffe3bb
@@ -16,7 +16,7 @@ try {
|
||||
$legacy = $e->getOutput();
|
||||
|
||||
$ntp = [
|
||||
data => [],
|
||||
'data' => [],
|
||||
];
|
||||
|
||||
[$ntp['data']['stratum'], $ntp['data']['offset'], $ntp['data']['frequency'], $ntp['data']['jitter'],
|
||||
|
Reference in New Issue
Block a user