aboutsummaryrefslogtreecommitdiff
path: root/views_override/default
diff options
context:
space:
mode:
Diffstat (limited to 'views_override/default')
-rw-r--r--views_override/default/page/components/list.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views_override/default/page/components/list.php b/views_override/default/page/components/list.php
index b34c454a6..b5a78406d 100644
--- a/views_override/default/page/components/list.php
+++ b/views_override/default/page/components/list.php
@@ -35,7 +35,10 @@ if(is_array($items) && ($items[0] instanceof ElggRiverItem)){
}
// reset key values
-$items = array_merge(array(), $items);
+if ($items)
+ $items = array_merge(array(), $items);
+else
+ $items = array();
$list_class = 'elgg-list';
if (isset($vars['list_class'])) {