From c88d6474c78d979c02a85722e5c1a9c00fd08bbe Mon Sep 17 00:00:00 2001 From: Steffen Ritter Date: Fri, 13 May 2022 12:49:39 +0200 Subject: [statistics] Fix undefined index notices --- modules-available/statistics/pages/machine.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/statistics/pages') diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php index 9e51d9f9..93f6d12a 100644 --- a/modules-available/statistics/pages/machine.inc.php +++ b/modules-available/statistics/pages/machine.inc.php @@ -126,7 +126,7 @@ class SubPage $pciLookup[$devId] = true; } // Passthrough enabled? - if (isset($passthroughTypes[$devId . ':' . $item['rev']])) { + if (isset($passthroughTypes[$devId . ':' . ($item['rev'] ?? '')])) { $item['pt'] = implode(', ', $passthroughTypes[$devId . ':' . $item['rev']]); } $class = $item['class']; -- cgit v1.2.3-55-g7522