diff options
author | Simon Rettberg | 2025-04-23 15:57:21 +0200 |
---|---|---|
committer | Simon Rettberg | 2025-04-23 15:57:21 +0200 |
commit | c9fb80c5d0f282eb30165833fc1ca94d4a1f6693 (patch) | |
tree | d6dbe248f01f46d8cd1f628b7b930bc839dd15c4 | |
parent | [statistics/minilinux] Support initramfs addons with load conditions (diff) | |
download | slx-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.php | 2 |
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)) |