aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/views.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 04:18:42 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 04:18:42 +0000
commit062509670573151a9ab74404073e919aaa333268 (patch)
treedc22c2220da6ddb18fe4dc25cbaccd12720655dd /engine/lib/views.php
parentc96af4a469b6e990ac3067ad691b46822deadf30 (diff)
downloadelgg-062509670573151a9ab74404073e919aaa333268.tar.gz
elgg-062509670573151a9ab74404073e919aaa333268.tar.bz2
required for river rss to work
git-svn-id: http://code.elgg.org/elgg/trunk@7767 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/views.php')
-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 '';
}