summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2023-12-14 17:53:55 +0100
committerSimon Rettberg2023-12-14 17:53:55 +0100
commitf9b809d1fe419cec2ce431220739dab41dc13e08 (patch)
tree7eb4dc872360ffafd773b110f31c97ab5d4f74ed
parent[eventlog] Fix permissions names (diff)
downloadslx-admin-f9b809d1fe419cec2ce431220739dab41dc13e08.tar.gz
slx-admin-f9b809d1fe419cec2ce431220739dab41dc13e08.tar.xz
slx-admin-f9b809d1fe419cec2ce431220739dab41dc13e08.zip
[locationinfo] Fix machine state updating
-rw-r--r--modules-available/locationinfo/inc/infopanel.inc.php4
1 files 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();