summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2023-06-28 17:11:45 +0200
committerSimon Rettberg2023-06-28 17:11:45 +0200
commitd8731b342797c779eeb56ddbfd51dc99ca4d0459 (patch)
treeb26ea292a7312bfcd2e1830b62d2d1e0e805e170
parent[statistics_reporting] Fix phpstorm complaints (diff)
downloadslx-admin-d8731b342797c779eeb56ddbfd51dc99ca4d0459.tar.gz
slx-admin-d8731b342797c779eeb56ddbfd51dc99ca4d0459.tar.xz
slx-admin-d8731b342797c779eeb56ddbfd51dc99ca4d0459.zip
[statistics] Fix invalid array access
-rw-r--r--modules-available/statistics/api.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/api.inc.php b/modules-available/statistics/api.inc.php
index bcc55944..497b1582 100644
--- a/modules-available/statistics/api.inc.php
+++ b/modules-available/statistics/api.inc.php
@@ -192,9 +192,9 @@ if ($type[0] === '~') {
}
// Add anything not present in $new from $old
$new += $old;
+ $new['oldlastboot'] = $old['lastboot'];
}
- $new['oldlastboot'] = $old['lastboot'];
unset($new['data']);
EventLog::applyFilterRules($type, $new);