|
|
|
@ -21,7 +21,7 @@ class Controller_Rest_Movie extends Controller_Rest
|
|
|
|
|
if (!$movie)
|
|
|
|
|
throw new FuelException('No movie found');
|
|
|
|
|
|
|
|
|
|
$user_settings = Model_Settings::find_one_by('user_id', Session::get('user')->id);
|
|
|
|
|
$user_settings = Model_Setting::find_one_by('user_id', Session::get('user')->id);
|
|
|
|
|
|
|
|
|
|
if ($movie->type !== 'movie')
|
|
|
|
|
$episodes = $movie->getSeason()->getEpisodes();
|
|
|
|
|