From 996cd6fdb981420c7e2f5dd31d4246f5597a20cc Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 21 May 2026 18:22:03 +0200 Subject: [PATCH] wip --- app/Actions/Statistics/LoadEventsAspGoal.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/Actions/Statistics/LoadEventsAspGoal.php b/app/Actions/Statistics/LoadEventsAspGoal.php index c91f56d4..6e7a35ec 100644 --- a/app/Actions/Statistics/LoadEventsAspGoal.php +++ b/app/Actions/Statistics/LoadEventsAspGoal.php @@ -62,16 +62,16 @@ class LoadEventsAspGoal switch ($similar_past_matches) { case 'league': - $team_id = false; + $team_id = 0; break; case 'all': - $league_id = false; - $team_id = false; + $league_id = 0; + $team_id = 0; break; default: // none - $total_range = false; - $handicap_range = false; + $total_range = 0; + $handicap_range = 0; break; } @@ -79,8 +79,6 @@ class LoadEventsAspGoal /** * STATISTIC DATA */ - $team_position = $filter['team_position']; - $res = StatistikoEvent::when($league_id, function ($query) use ($league_id) { return $query->where('league_id', $league_id); })->when($team_id, function ($query) use ($team_id, $team_position) {