wip
This commit is contained in:
1 parent
be4a08982e
commit
f6f898c207
1 file changed
+2
-1
@@ -13,7 +13,6 @@ class LoadSeasons
|
|||||||
|
|
||||||
$res = StatistikoEvent::where('league_id', $league_id)
|
$res = StatistikoEvent::where('league_id', $league_id)
|
||||||
->groupBy('season')
|
->groupBy('season')
|
||||||
->orderBy('starttime', 'ASC')
|
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
if (! $res) {
|
if (! $res) {
|
||||||
@@ -25,6 +24,8 @@ class LoadSeasons
|
|||||||
$arr[$val->season] = $val->season;
|
$arr[$val->season] = $val->season;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sort($arr);
|
||||||
|
|
||||||
return $arr;
|
return $arr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user