diff --git a/addvideo.php b/addvideo.php index 80600146..028d3245 100644 --- a/addvideo.php +++ b/addvideo.php @@ -35,11 +35,7 @@ require_once($CFG->dirroot . '/repository/lib.php'); $courseid = required_param('courseid', PARAM_INT); -if ($courseid == $SITE->id) { - $series = optional_param('series', null, PARAM_ALPHANUMEXT); -} else { - $series = null; -} +$series = optional_param('series', null, PARAM_ALPHANUMEXT); $ocinstanceid = optional_param('ocinstanceid', settings_api::get_default_ocinstance()->id, PARAM_INT); $baseurlparams = [