This commit is contained in:
salam committed 2026-08-30 17:17:44 +02:00
1 parent c49f5e2364
commit a794f6a384
2 files changed
+5 -3

No files matched your search

@@ -8,7 +8,7 @@ class GetSeason
{
public static function load(array $season, int|null $sofascore_category_id)
{
if (!$season) {
if (!is_array($season) || !count($season)) {
if ($sofascore_category_id) {
$season_mode = SofaScoreCategory::where('id', $sofascore_category_id)->value('season_mode');
if ($season_mode == 'halfyear') {
@@ -17,6 +17,9 @@ class GetSeason
else
$season[] = date('y', strtotime('-1 year')) . '/' . date('y');
}
else {
$season[] = date('Y');
}
}
}