@ -369,6 +369,7 @@ if ($form->validate()) {
Database::query($sql);
$title = str_replace('&', '&', $title);
$params = [
'course_language' => $course_language,
'title' => $title,
@ -1159,8 +1159,9 @@ class AddCourse
public static function register_course($params)
{
global $error_msg, $firstExpirationDelay;
$title = $params['title'];
// Fix amp
$code = $params['code'];
$visual_code = $params['visual_code'];
$directory = $params['directory'];