From f1f08168b325605a489b5f21cfdfff96312d55f8 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 23 Oct 2010 15:01:00 +0000 Subject: moved cover code into album class --- views/default/tidypics/albums.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'views/default/tidypics/albums.php') diff --git a/views/default/tidypics/albums.php b/views/default/tidypics/albums.php index a4b2ee906..7e0cd2d6c 100644 --- a/views/default/tidypics/albums.php +++ b/views/default/tidypics/albums.php @@ -14,8 +14,9 @@ echo '
'; if ($owner_albums) { foreach ($owner_albums as $album) { - if ($album->cover) { - $album_cover = '' . $album->title . ''; + $album_cover_guid = $album->getCoverImageGuid(); + if ($album_cover_guid) { + $album_cover = '' . $album->title . ''; } else { $album_cover = '' . $album->title . ''; } -- cgit v1.2.3