mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
issue #165 gefixt. Tabelle wird falsch gespeichert bei Direkter Vergleich.
This commit is contained in:
@@ -4677,6 +4677,13 @@ function teamstatistikAktualisieren($geaenderte_veranstaltung_id = 0, $geaendert
|
||||
$anzahl_spieltage_gespielt = loadResult($db, $query);
|
||||
$aktueller_spieltag = count($spieltage) > 0 ? $spieltage[0]->spieltag : 0;
|
||||
|
||||
//Platzierung ueberschreiben. Jetzige Platzierung kommt aus Tabelle und koennte falsch sein.
|
||||
$platz = 0;
|
||||
foreach($teams AS $team)
|
||||
{
|
||||
$team->platz = ++$platz;
|
||||
}
|
||||
|
||||
// Direkter Vergleich, wenn mindestens die Hälfte der Spieltage gespielt sind.
|
||||
if ($veranstaltung->direktervergleich && $anzahl_spieltage_gespielt >= $anzahl_spieltage_komplett/2 && $anzahl_spieltage_komplett >= 3){
|
||||
$teams = getTabelleDirekterVergleich($teams,$veranstaltung,$aktueller_spieltag);
|
||||
|
||||
Reference in New Issue
Block a user