From d7e3dc4d70ac7a233a05c5836ec0ec9f18243277 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 25 Nov 2011 13:47:57 -0500 Subject: returning from gallery view if no items in the gallery --- views/default/page/components/gallery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/default/page') diff --git a/views/default/page/components/gallery.php b/views/default/page/components/gallery.php index 149ceeaf8..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; } -- cgit v1.2.3