aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/page/elements/comments_block.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/page/elements/comments_block.php b/views/default/page/elements/comments_block.php
index 89e43b266..5571dc707 100644
--- a/views/default/page/elements/comments_block.php
+++ b/views/default/page/elements/comments_block.php
@@ -9,9 +9,14 @@
* @uses $vars['limit'] The number of comments to display
*/
+$owner_guid = elgg_extract('owner_guid', $vars, ELGG_ENTITIES_ANY_VALUE);
+if (!$owner_guid) {
+ $owner_guid = ELGG_ENTITIES_ANY_VALUE;
+}
+
$options = array(
'annotation_name' => 'generic_comment',
- 'owner_guid' => elgg_extract('owner_guid', $vars, ELGG_ENTITIES_ANY_VALUE),
+ 'owner_guid' => $owner_guid,
'reverse_order_by' => true,
'limit' => elgg_extract('limit', $vars, 4),
'type' => 'object',