diff options
Diffstat (limited to 'views/default/object')
-rw-r--r-- | views/default/object/album.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/views/default/object/album.php b/views/default/object/album.php index b95d55eed..9d3dc507f 100644 --- a/views/default/object/album.php +++ b/views/default/object/album.php @@ -111,14 +111,15 @@ //build array for back | next links $_SESSION['image_sort'] = array(); - foreach($count as $image){ - array_push($_SESSION['image_sort'], $image->guid); - } + if(count($count) > 0) { + foreach($count as $image){ + array_push($_SESSION['image_sort'], $image->guid); + } - if(count($count) > 0) echo list_entities("object","image", $file_guid, 24, false); - else + } else { echo elgg_echo('image:none'); + } ?> <div class="clearfloat"></div> |