Payout bugfix

This commit is contained in:
Torsten 2017-11-10 15:32:54 +01:00
parent 922db48c36
commit 622ecaf97c
8 changed files with 73 additions and 54 deletions

View file

@ -88,7 +88,7 @@ class LeaguesController extends Controller
$roundNames = Round::getNames();
$leagueNames = League::getNames();
$leagues = League::where('season_id','=',$season->id)->where('rank','<', 4)->orderBy('id')->get();
$leagues = League::where('season_id','=',$season->id)->where('rank','<=', 4)->orderBy('id')->get();
$matchesTotal = array();
foreach ($leagues as $league) {
@ -114,6 +114,9 @@ class LeaguesController extends Controller
//$leagues = array_reverse(League::getRanking($rank));
$leagueNames = League::getNames();
$userNames = User::getNames();
$leagues = League::where('season_id','=',$season->id)->where('rank','<=', 4)->orderBy('id')->get();
if (!sizeof($leagues)) return redirect("/");
$totalRanking = League::getTotalRankingOverall(); // Nur für Auf/Abstiegsinfo benötigt.
$rankInfo=array();