diff --git a/app/views/admin/hps_learnings/show.html.erb b/app/views/admin/hps_learnings/show.html.erb index 4d930e8..9366156 100644 --- a/app/views/admin/hps_learnings/show.html.erb +++ b/app/views/admin/hps_learnings/show.html.erb @@ -9,10 +9,10 @@ <% @hpsclass.hps_lectures.each do |lecture| %> - <% if !lecture.lecture_pic.url.empty? %> + <% if !lecture.lecture_pic.nil? && !lecture.lecture_pic.url.empty? %> <% else %> -   + <% end %> <%= lecture.subject %>