summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2025-04-23 15:57:21 +0200
committerSimon Rettberg2025-04-23 15:57:21 +0200
commitc9fb80c5d0f282eb30165833fc1ca94d4a1f6693 (patch)
treed6dbe248f01f46d8cd1f628b7b930bc839dd15c4
parent[statistics/minilinux] Support initramfs addons with load conditions (diff)
downloadslx-admin-c9fb80c5d0f282eb30165833fc1ca94d4a1f6693.tar.gz
slx-admin-c9fb80c5d0f282eb30165833fc1ca94d4a1f6693.tar.xz
slx-admin-c9fb80c5d0f282eb30165833fc1ca94d4a1f6693.zip
[statistics] Add accidentally deleted lines which broke everything :>
-rw-r--r--modules-available/statistics/inc/hardwareinfo.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-available/statistics/inc/hardwareinfo.inc.php b/modules-available/statistics/inc/hardwareinfo.inc.php
index 3c7819d5..41033f55 100644
--- a/modules-available/statistics/inc/hardwareinfo.inc.php
+++ b/modules-available/statistics/inc/hardwareinfo.inc.php
@@ -42,6 +42,8 @@ class HardwareInfo
return '';
$kcl = '';
if (((int)$best['locationid']) === 0) {
+ $passthrough = [];
+ } else {
// Passthrough/GVT-g only settable for locations, don't bother if machine doesn't belong to one
$locations = Location::getLocationRootChain($best['locationid']);
if (empty($locations))