Clicking on episodes of a podcast with no episode crashes
When a podcast is created, but no episodes have been added, clicking on the episodes tab causes a crash. The fact that there are no episodes should be reported instead.
APPPATH/Controllers/Podcast.php at line 72
65 $yearQuery = $this->request->getGet('year');
66 $seasonQuery = $this->request->getGet('season');
67
68 if (!$yearQuery and !$seasonQuery) {
69 $defaultQuery = (new EpisodeModel())->getDefaultQuery(
70 $this->podcast->id,
71 );
72 if ($defaultQuery['type'] == 'season') {
73 $seasonQuery = $defaultQuery['data']['season_number'];
74 } elseif ($defaultQuery['type'] == 'year') {
75 $yearQuery = $defaultQuery['data']['year'];
76 }
77 }
78
79 $cacheName = implode(