From 2eb8c06a0200764787cc2dba5854e1d926e93acc 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') 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