From 5debc08a70ed04042b3ad074dad1946a2d7aad2f Mon Sep 17 00:00:00 2001 From: salam Date: Sun, 16 Aug 2026 20:08:35 +0200 Subject: [PATCH] wip --- app/Filament/Widgets/Data/LoadEvents.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Filament/Widgets/Data/LoadEvents.php b/app/Filament/Widgets/Data/LoadEvents.php index 915da789..86e30a98 100644 --- a/app/Filament/Widgets/Data/LoadEvents.php +++ b/app/Filament/Widgets/Data/LoadEvents.php @@ -81,7 +81,11 @@ class LoadEvents $team_position = 'all'; } - $expectations = LoadExpectations::load($res['all'] ?? [], $match, $statistic_type); + if (!isset($res['all'])) { + return; + } + + $expectations = LoadExpectations::load($res['all'], $match, $statistic_type); foreach ($res[$team_position] as $value) {