From d8731b342797c779eeb56ddbfd51dc99ca4d0459 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 28 Jun 2023 17:11:45 +0200 Subject: [statistics] Fix invalid array access --- modules-available/statistics/api.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-55-g7522