Fixing creation of new player league
This commit is contained in:
parent
9126d54dfb
commit
d6a51ea2c6
16 changed files with 154 additions and 507 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue