small fix

This commit is contained in:
Harry Bomrah 2017-07-05 11:57:30 +08:00
parent c5c92d67f0
commit edf6e6e832
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
<tbody>
<% @hpsclass.hps_lectures.each do |lecture| %>
<tr>
<% if !lecture.lecture_pic.nil? && !lecture.lecture_pic.url.empty? %>
<% if !lecture.lecture_pic.nil? && !lecture.lecture_pic.url.nil? %>
<td><img width="150px" src="<%= lecture.lecture_pic.thumb.url %>" /></td>
<% else %>
<td><img src="http://www.placehold.it/150x150/EFEFEF/AAAAAA" width="150px"></td>