Fix charts

This commit is contained in:
2023-06-08 21:07:33 +02:00
parent c9b4372b34
commit 6c90033ede
4 changed files with 2 additions and 16 deletions

View File

@@ -2612,7 +2612,7 @@ function bonuspoints($season, $league, $matchday)
array_push ( $id, $row['team_id_home']);
}
$i = 0;
while($id[$i])
while($i < count($id))
{
$tmp = $id[$i];
$sql = 'UPDATE ' . FOOTB_BONUS_DAY . " SET home = '1' WHERE season = '$season' AND league = '$league2' AND matchday = '$matchday' AND team_id = '$tmp'";