Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter MihanTheme

    (@mihantheme)

    I replaced the following code in line 304 of the file:
    modules/mas-tv-shows-episodes/widget/mas-tv-shows-episodes.php

    $tv_shows = masvideos_get_tv_show( get_the_ID() );

    with this:

    if ( is_singular( 'episode' ) ) {
    $episode = masvideos_get_episode( get_the_ID() );
    if ( ! empty( $episode ) ) {
    $tv_show_id = $episode->get_tv_show_id();
    $tv_shows = masvideos_get_tv_show( $tv_show_id );
    } else {
    $tv_shows = false;
    }
    } else {
    $tv_shows = masvideos_get_tv_show( get_the_ID() );
    }

    This temporarily resolved the issue.
    Please include these changes in the next update.

    • This reply was modified 3 weeks, 4 days ago by MihanTheme.
    • This reply was modified 3 weeks, 4 days ago by MihanTheme.
Viewing 1 replies (of 1 total)