fix: edit remap functions to get episode in episode admin controllers

This commit is contained in:
Yassine Doghri 2024-12-29 16:06:00 +00:00
parent f295e9aa4c
commit 9f74cca342
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class EpisodePersonController extends BaseController
} }
if ( if (
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1]) instanceof Episode) ! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1])) instanceof Episode
) { ) {
throw PageNotFoundException::forPageNotFound(); throw PageNotFoundException::forPageNotFound();
} }

View File

@ -37,7 +37,7 @@ class SoundbiteController extends BaseController
} }
if ( if (
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1]) instanceof Episode) ! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1])) instanceof Episode
) { ) {
throw PageNotFoundException::forPageNotFound(); throw PageNotFoundException::forPageNotFound();
} }

View File

@ -38,7 +38,7 @@ class VideoClipsController extends BaseController
} }
if ( if (
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1]) instanceof Episode) ! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1])) instanceof Episode
) { ) {
throw PageNotFoundException::forPageNotFound(); throw PageNotFoundException::forPageNotFound();
} }