From 3351795115c8f7327bb971fc2b854eb845ed4874 Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 30 Apr 2026 09:16:30 +0200 Subject: [PATCH] bug fix --- app/Actions/Statistics/LoadEvents.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Actions/Statistics/LoadEvents.php b/app/Actions/Statistics/LoadEvents.php index 201bfabe..7b46068b 100644 --- a/app/Actions/Statistics/LoadEvents.php +++ b/app/Actions/Statistics/LoadEvents.php @@ -115,7 +115,7 @@ class LoadEvents } } else { - switch ($filter['statistic_type']) { + switch ($statistic_type) { case 'gls': if ($team_id == $value['home_id']) { $val = (int) $value['gls_a']; @@ -168,9 +168,7 @@ class LoadEvents } } - if (isset($val)) { - $datasets[] = $val; - } + $datasets[] = $val; } $data = [