summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2023-02-06 10:36:21 +0100
committerSimon Rettberg2023-02-06 10:36:21 +0100
commit3dbff1aab268a2da851f246d8e4d445601b0195a (patch)
tree0e3a48cfa74b9440a0fc6e52469932223722bc45 /modules-available/statistics/pages
parent[serversetup-bwlp-ipxe] Add error handling, remove dead code (diff)
downloadslx-admin-3dbff1aab268a2da851f246d8e4d445601b0195a.tar.gz
slx-admin-3dbff1aab268a2da851f246d8e4d445601b0195a.tar.xz
slx-admin-3dbff1aab268a2da851f246d8e4d445601b0195a.zip
[statistics] Fix notice on invalid array key access
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/machine.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php
index 1b93584e..2250c4b9 100644
--- a/modules-available/statistics/pages/machine.inc.php
+++ b/modules-available/statistics/pages/machine.inc.php
@@ -134,7 +134,7 @@ class SubPage
}
// Passthrough enabled?
if (isset($passthroughTypes[$devId . ':' . ($item['rev'] ?? '')])) {
- $item['pt'] = implode(', ', $passthroughTypes[$devId . ':' . $item['rev']]);
+ $item['pt'] = implode(', ', $passthroughTypes[$devId . ':' . ($item['rev'] ?? '')]);
}
$class = $item['class'];
if ($class === '0300' || $class === '0200' || $class === '0403' || !empty($item['pt'])) {