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 = [