summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))