summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-30 17:00:14 +0200
committerSimon Rettberg2022-05-30 17:00:14 +0200
commitfd9b0f97cffe2ca6ad2d07cdcb546a09e1b08e90 (patch)
tree363858899ff564635ecbb8a8a7c09628f840a76b /modules-available/statistics/pages
parent[minilinux] Add quicknav at top of version list (diff)
downloadslx-admin-fd9b0f97cffe2ca6ad2d07cdcb546a09e1b08e90.tar.gz
slx-admin-fd9b0f97cffe2ca6ad2d07cdcb546a09e1b08e90.tar.xz
slx-admin-fd9b0f97cffe2ca6ad2d07cdcb546a09e1b08e90.zip
[statistics] Fix undefined array index access
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/machine.inc.php4
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 = [