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) {
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) {