This commit is contained in:
salam committed 2026-05-21 19:07:37 +02:00
1 parent e7793158f8
commit 2a91a439df
1 file changed
+9
@@ -50,6 +50,14 @@ class LoadEventsAspGoal
$accuracy = (float) $filter['accuracy']; $accuracy = (float) $filter['accuracy'];
if ($res == null) {
$handicap_range = 0;
$total_range = 0;
} else {
$exp_handicap = $res['exp_away'] - $res['exp_home']; $exp_handicap = $res['exp_away'] - $res['exp_home'];
$exp_total = $res['exp_away'] + $res['exp_home']; $exp_total = $res['exp_away'] + $res['exp_home'];
@@ -57,6 +65,7 @@ class LoadEventsAspGoal
$handicap_range = [$exp_handicap - $accuracy, $exp_handicap + $accuracy]; $handicap_range = [$exp_handicap - $accuracy, $exp_handicap + $accuracy];
$total_range = [$exp_total - $accuracy, $exp_total + $accuracy]; $total_range = [$exp_total - $accuracy, $exp_total + $accuracy];
}
$similar_past_matches = $filter['similar_past_matches'] ?? 0; $similar_past_matches = $filter['similar_past_matches'] ?? 0;