]> _ Git - fluidbook-toolbox.git/commitdiff
wip #62341 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 1 Sep 2023 08:17:32 +0000 (10:17 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 1 Sep 2023 08:17:32 +0000 (10:17 +0200)
app/Fluidbook/Stats.php

index b761489ad6aa7eac56091c9eaab948c4e5257d38..5517c2c06c57ab1fe28dd6b9df01404493e0a866 100644 (file)
@@ -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;