]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
returning from gallery view if no items in the gallery
authorCash Costello <cash.costello@gmail.com>
Fri, 25 Nov 2011 18:47:57 +0000 (13:47 -0500)
committerCash Costello <cash.costello@gmail.com>
Fri, 25 Nov 2011 18:47:57 +0000 (13:47 -0500)
views/default/page/components/gallery.php

index 149ceeaf8128990bc88d0cbdd7cbe7fa734dd8bb..e8b3f477e68393baa836b1888ad5228e9c0efc2c 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 $items = $vars['items'];
-if (!is_array($items) && sizeof($items) == 0) {
+if (!is_array($items) || sizeof($items) == 0) {
        return true;
 }