diff options
Diffstat (limited to 'lib/events.rb')
| -rw-r--r-- | lib/events.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events.rb b/lib/events.rb index 24404f1..055b9c2 100644 --- a/lib/events.rb +++ b/lib/events.rb @@ -15,7 +15,7 @@ module Events @duration = attrs['duration'].to_i @title = attrs['title'] @venue = attrs['venue'] - @image_url = attrs['image'] unless attrs['image'].length < 10 + @image_url = attrs['image'] unless attrs['image'].nil? or attrs['image'].length < 10 @info_link = attrs['info_link'] end |
