From 687eb7ba0b7eadf11a4667e07479c168667a5095 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Sat, 7 Jan 2012 15:48:40 -0800 Subject: [PATCH] double check on photos --- app/views/templates/reshare.jst | 2 +- app/views/templates/status_message.jst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/templates/reshare.jst b/app/views/templates/reshare.jst index 7b297db7a..899964248 100644 --- a/app/views/templates/reshare.jst +++ b/app/views/templates/reshare.jst @@ -27,7 +27,7 @@ - <% if(root.photos_count > 0) { %> + <% if(root.photos_count > 0 && root.photos && root.photos.length > 0) { %>
<% for(photo in root.photos) { diff --git a/app/views/templates/status_message.jst b/app/views/templates/status_message.jst index f05205a91..aff46c0b2 100644 --- a/app/views/templates/status_message.jst +++ b/app/views/templates/status_message.jst @@ -1,4 +1,4 @@ -<% if(photos_count > 0) { %> +<% if(photos_count > 0 && photos.length > 0) { %>