From 1748827f0ade7f91243fa109027ccf7abca9a528 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Thu, 13 Jan 2011 10:19:17 -0800 Subject: [PATCH] photos show spec passes --- app/views/photos/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' \/