From edf6e6e8328c01737b86e053279fcab4b6f1b50d Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 5 Jul 2017 11:57:30 +0800 Subject: [PATCH] small fix --- app/views/admin/hps_learnings/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/hps_learnings/show.html.erb b/app/views/admin/hps_learnings/show.html.erb index 9366156..d61b74f 100644 --- a/app/views/admin/hps_learnings/show.html.erb +++ b/app/views/admin/hps_learnings/show.html.erb @@ -9,7 +9,7 @@ <% @hpsclass.hps_lectures.each do |lecture| %> - <% if !lecture.lecture_pic.nil? && !lecture.lecture_pic.url.empty? %> + <% if !lecture.lecture_pic.nil? && !lecture.lecture_pic.url.nil? %> <% else %>