This commit is contained in:
salam committed 2026-05-21 18:22:03 +02:00
1 parent 2cfcc401da
commit 996cd6fdb9
1 file changed
+5 -7
+5 -7
View File
@@ -62,16 +62,16 @@ class LoadEventsAspGoal
switch ($similar_past_matches) { switch ($similar_past_matches) {
case 'league': case 'league':
$team_id = false; $team_id = 0;
break; break;
case 'all': case 'all':
$league_id = false; $league_id = 0;
$team_id = false; $team_id = 0;
break; break;
default: default:
// none // none
$total_range = false; $total_range = 0;
$handicap_range = false; $handicap_range = 0;
break; break;
} }
@@ -79,8 +79,6 @@ class LoadEventsAspGoal
/** /**
* STATISTIC DATA * STATISTIC DATA
*/ */
$team_position = $filter['team_position'];
$res = StatistikoEvent::when($league_id, function ($query) use ($league_id) { $res = StatistikoEvent::when($league_id, function ($query) use ($league_id) {
return $query->where('league_id', $league_id); return $query->where('league_id', $league_id);
})->when($team_id, function ($query) use ($team_id, $team_position) { })->when($team_id, function ($query) use ($team_id, $team_position) {