diff options
Diffstat (limited to 'views/default/page/components/gallery.php')
-rw-r--r-- | views/default/page/components/gallery.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/default/page/components/gallery.php b/views/default/page/components/gallery.php index f03eb1109..e8b3f477e 100644 --- a/views/default/page/components/gallery.php +++ b/views/default/page/components/gallery.php @@ -16,7 +16,7 @@ */ $items = $vars['items']; -if (!is_array($items) && sizeof($items) == 0) { +if (!is_array($items) || sizeof($items) == 0) { return true; } @@ -39,6 +39,7 @@ if (isset($vars['item_class'])) { $item_class = "$item_class {$vars['item_class']}"; } +$nav = ''; if ($pagination && $count) { $nav .= elgg_view('navigation/pagination', array( 'offset' => $offset, |