diff options
author | Simon Rettberg | 2022-05-30 17:00:14 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-05-30 17:00:14 +0200 |
commit | fd9b0f97cffe2ca6ad2d07cdcb546a09e1b08e90 (patch) | |
tree | 363858899ff564635ecbb8a8a7c09628f840a76b | |
parent | [minilinux] Add quicknav at top of version list (diff) | |
download | slx-admin-fd9b0f97cffe2ca6ad2d07cdcb546a09e1b08e90.tar.gz slx-admin-fd9b0f97cffe2ca6ad2d07cdcb546a09e1b08e90.tar.xz slx-admin-fd9b0f97cffe2ca6ad2d07cdcb546a09e1b08e90.zip |
[statistics] Fix undefined array index access
-rw-r--r-- | modules-available/statistics/pages/machine.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php index 250331cf..0bf6f8fb 100644 --- a/modules-available/statistics/pages/machine.inc.php +++ b/modules-available/statistics/pages/machine.inc.php @@ -225,8 +225,8 @@ class SubPage if (preg_match('#^(\d{1,2})/(\d{1,2})/(\d{4})#', $client['bios']['Release Date'], $out)) { $client['bios']['Release Date'] = $out[2] . '.' . $out[1] . '.' . $out[3]; } - $mainboard = $client['mainboard']['Manufacturer'] . '##' . $client['mainboard']['Product Name']; - $system = $client['system']['Manufacturer'] . '##' . $client['system']['Product Name']; + $mainboard = ($client['mainboard']['Manufacturer'] ?? '') . '##' . ($client['mainboard']['Product Name'] ?? ''); + $system = ($client['system']['Manufacturer'] ?? '') . '##' . ($client['system']['Product Name'] ?? ''); $ret = self::checkBios($mainboard, $system, $client['bios']['Release Date'], $client['bios']['BIOS Revision']); if ($ret === false) { // Not loaded, use AJAX $params = [ |