diff --git a/libraries/classes/Controllers/Server/Status/StatusController.php b/libraries/classes/Controllers/Server/Status/StatusController.php index 61554a54b1..0fa1cc72ef 100644 --- a/libraries/classes/Controllers/Server/Status/StatusController.php +++ b/libraries/classes/Controllers/Server/Status/StatusController.php @@ -54,15 +54,20 @@ class StatusController extends AbstractController $connections = []; $replication = ''; if ($this->data->dataLoaded) { - $networkTraffic = implode( - ' ', - Util::formatByteDown( - $this->data->status['Bytes_received'] + $this->data->status['Bytes_sent'], - 3, - 1 - ) - ); - $uptime = Util::timespanFormat($this->data->status['Uptime']); + // In some case the data was reported not to exist, check it for all keys + if (isset($this->data->status['Bytes_received'], $this->data->status['Bytes_sent'])) { + $networkTraffic = implode( + ' ', + Util::formatByteDown( + $this->data->status['Bytes_received'] + $this->data->status['Bytes_sent'], + 3, + 1 + ) + ); + } + if (isset($this->data->status['Uptime'])) { + $uptime = Util::timespanFormat($this->data->status['Uptime']); + } $startTime = Util::localisedDate($this->getStartTime()); $traffic = $this->getTrafficInfo();