Fixing creation of new player league

This commit is contained in:
Torsten 2018-01-01 18:25:56 +01:00
parent 9126d54dfb
commit d6a51ea2c6
16 changed files with 154 additions and 507 deletions

View file

@ -48,10 +48,8 @@ class Round extends Model
}
public static function getLastCompleteRoundId($seasonId=-1) {
$season=null;
if ($seasonId==-1) {
$season = Season::getCurrent();
} else {
$season = Season::getCurrent();
if ($seasonId!=-1) {
$season=Season::where('id','=',$seasonId)->first();
}
if (!$season) return -1;