double check on photos

This commit is contained in:
danielgrippi 2012-01-07 15:48:40 -08:00
parent 36e13893a3
commit 687eb7ba0b
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@
</div>
<!-- duplicate from statusmessage partial -->
<% if(root.photos_count > 0) { %>
<% if(root.photos_count > 0 && root.photos && root.photos.length > 0) { %>
<div class="photo_attachments">
<img src="<%= root.photos[0].sizes.large %>" class="stream-photo big_stream_photo">
<% for(photo in root.photos) {

View file

@ -1,4 +1,4 @@
<% if(photos_count > 0) { %>
<% if(photos_count > 0 && photos.length > 0) { %>
<div class="photo_attachments">
<a href="#" class="stream-photo-link">
<img src="<%= photos[0].sizes.large %>" class="stream-photo big_stream_photo" data-small-photo="<%= photos[0].sizes.small %>" data-full-photo="<%= photos[0].sizes.large %>" rel="lightbox">