diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/core/river/filter.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/core/river/filter.php b/views/default/core/river/filter.php index aaa4beb89..7f8b7dec7 100644 --- a/views/default/core/river/filter.php +++ b/views/default/core/river/filter.php @@ -9,9 +9,11 @@ $options = array(); $options['type=all'] = elgg_echo('river:select', array(elgg_echo('all'))); $registered_entities = elgg_get_config('registered_entities'); + if (!empty($registered_entities)) { foreach ($registered_entities as $type => $subtypes) { - if (!is_array($subtypes)) { + // subtype will always be an array. + if (!count($subtypes)) { $label = elgg_echo('river:select', array(elgg_echo("item:$type"))); $options["type=$type"] = $label; } else { |