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 <cash.costello@gmail.com>2011-11-28 21:44:01 -0500
commitd7e3dc4d70ac7a233a05c5836ec0ec9f18243277 (patch)
treef61a3a8b40f698f4c00294fa0b42076d2f7b836c /views/default/page
parentefd3dbc1537f1af4a1217e0a9179d4ec444f8f6a (diff)
downloadelgg-d7e3dc4d70ac7a233a05c5836ec0ec9f18243277.tar.gz
elgg-d7e3dc4d70ac7a233a05c5836ec0ec9f18243277.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;
}