aboutsummaryrefslogtreecommitdiff
path: root/views/default/page
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-25 13:47:57 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-25 13:47:57 -0500
commit2eb8c06a0200764787cc2dba5854e1d926e93acc (patch)
treeb8109c6fb183fdacfb5412a15e5130c725648c6e /views/default/page
parent6199deaa67bebda49b78bcfd5071c362e037d58b (diff)
downloadelgg-2eb8c06a0200764787cc2dba5854e1d926e93acc.tar.gz
elgg-2eb8c06a0200764787cc2dba5854e1d926e93acc.tar.bz2
returning from gallery view if no items in the gallery
Diffstat (limited to 'views/default/page')
-rw-r--r--views/default/page/components/gallery.php2
1 files changed, 1 insertions, 1 deletions
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;
}