diff options
author | Pablo Martin <caedes@sindominio.net> | 2012-10-23 02:35:48 +0000 |
---|---|---|
committer | root <root@migration.vz.lan> | 2012-10-23 02:35:57 +0000 |
commit | 4a8f3623c5d15543cc08ab93a245d612fa09c3fe (patch) | |
tree | ef3ca9a6b090d80aaa5264625558d8bfb2f6c447 /views_override/default | |
parent | 9c543bc93cf31e7368a5be1c6b53b7099b28191d (diff) | |
download | elgg-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.php | 5 |
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'])) { |