From 3dbff1aab268a2da851f246d8e4d445601b0195a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 6 Feb 2023 10:36:21 +0100 Subject: [statistics] Fix notice on invalid array key access --- 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 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'])) { -- cgit v1.2.3-55-g7522