aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/views.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index eff5df394..87d1a3836 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -1064,7 +1064,8 @@ function elgg_view_image_block($image, $body, $vars = array()) {
* @return string|false Depending on success
*/
function elgg_view_river_item($item) {
- if (!$item || !$item->getView() || !elgg_view_exists($item->getView())) {
+ // checking default viewtype since some viewtypes do not have unique views per item (rss)
+ if (!$item || !$item->getView() || !elgg_view_exists($item->getView(), 'default')) {
return '';
}