diff --git a/app/controllers/personal_courses_controller.rb b/app/controllers/personal_courses_controller.rb index 1f8aacf..3376472 100644 --- a/app/controllers/personal_courses_controller.rb +++ b/app/controllers/personal_courses_controller.rb @@ -5,8 +5,8 @@ class PersonalCoursesController < ApplicationController { "year" => course.year, "title" => course.title, - "category" => course.course_category.title, - "semester" => course.course_semester.title, + "category" => (course.course_category.title rescue ""), + "semester" => (course.course_semester.title rescue ""), "authors" => (course.member_profile.name rescue ""), "link_to_show" => OrbitHelper.url_to_show(course.to_param) }