From a90f8ab256eac116930e38f0137c5e6f7c11dd85 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 1 Sep 2023 10:17:32 +0200 Subject: [PATCH] wip #62341 @1 --- app/Fluidbook/Stats.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Fluidbook/Stats.php b/app/Fluidbook/Stats.php index b761489ad..5517c2c06 100644 --- a/app/Fluidbook/Stats.php +++ b/app/Fluidbook/Stats.php @@ -335,7 +335,11 @@ class Stats extends Reporting $events = collect($this->_eventsByPage['share']['subtable'] ?? [])->sortByDesc('nb_events'); + foreach ($events as $event) { + if (!isset($icons[$event['label']])) { + continue; + } $res[$event['label']] = ['nb' => $event['nb_events'], 'icon' => $icons[$event['label']]]; } return $res; -- 2.39.5