Skip to content

Commit

Permalink
Redirect videosync on invalid video ID instead of showing blank page
Browse files Browse the repository at this point in the history
  • Loading branch information
RedEnchilada committed Jun 12, 2014
1 parent ee1438b commit 6e11362
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/VideoSync/addvideo.php
Expand Up @@ -64,7 +64,9 @@ function handle($args)
$v->duration = intval($n['duration']);
$v->yt_name = $x->title . '';
//ob_end_clean(); // @fixme I'm real sick of those warnings tho
} else exit;
} else {
common_redirect(common_local_url('managevideosync'), 303);
};
}

if($this->trimmed('video_yt_name'))
Expand Down

0 comments on commit 6e11362

Please sign in to comment.