From f9b809d1fe419cec2ce431220739dab41dc13e08 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 14 Dec 2023 17:53:55 +0100 Subject: [locationinfo] Fix machine state updating --- modules-available/locationinfo/inc/infopanel.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules-available/locationinfo/inc/infopanel.inc.php b/modules-available/locationinfo/inc/infopanel.inc.php index c0352c26..1a0e9b67 100644 --- a/modules-available/locationinfo/inc/infopanel.inc.php +++ b/modules-available/locationinfo/inc/infopanel.inc.php @@ -87,9 +87,9 @@ class InfoPanel * @param array $array location list to populate with machine data * @param bool $withPosition Defines if coords should be included or not. */ - public static function appendMachineData(?array &$array, array $idList, bool $withPosition = false, bool $withHostname = false): void + public static function appendMachineData(array &$array, array $idList, bool $withPosition = false, bool $withHostname = false): void { - if (empty($array) || empty($idList)) + if (empty($idList)) return; $ignoreList = array(); -- cgit v1.2.3-55-g7522