diff --git a/app/views/photos/show.html.haml b/app/views/photos/show.html.haml index 0493a9610..80bd43b39 100644 --- a/app/views/photos/show.html.haml +++ b/app/views/photos/show.html.haml @@ -7,7 +7,7 @@ .span-15.append-1.last #photo_controls - -if @additional_photos.length > 1 + -if @additional_photos && @additional_photos.length > 1 .right =link_to "← #{t('previous')}", @prev_photo, :rel => 'prefetch', :id => 'photo_show_left' \/