Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • Castopod Castopod
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 137
    • Issues 137
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Ad AuresAd Aures
  • CastopodCastopod
  • Issues
  • #100

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(
Assignee
Assign to
Time tracking