aboutsummaryrefslogtreecommitdiff
path: root/views_override/default
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-10-23 02:35:48 +0000
committerroot <root@migration.vz.lan>2012-10-23 02:35:57 +0000
commit4a8f3623c5d15543cc08ab93a245d612fa09c3fe (patch)
treeef3ca9a6b090d80aaa5264625558d8bfb2f6c447 /views_override/default
parent9c543bc93cf31e7368a5be1c6b53b7099b28191d (diff)
downloadelgg-4a8f3623c5d15543cc08ab93a245d612fa09c3fe.tar.gz
elgg-4a8f3623c5d15543cc08ab93a245d612fa09c3fe.tar.bz2
protect from empty items.
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'])) {