From: Vincent Vanwaelscappel Date: Fri, 1 Sep 2023 08:17:32 +0000 (+0200) Subject: wip #62341 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a90f8ab256eac116930e38f0137c5e6f7c11dd85;p=fluidbook-toolbox.git wip #62341 @1 --- 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;