aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/pages/owner.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bookmarks/pages/owner.php')
-rw-r--r--mod/bookmarks/pages/owner.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/bookmarks/pages/owner.php b/mod/bookmarks/pages/owner.php
index c11d6628e..72843f9f0 100644
--- a/mod/bookmarks/pages/owner.php
+++ b/mod/bookmarks/pages/owner.php
@@ -34,10 +34,17 @@ if ($page_owner->getGUID() == elgg_get_logged_in_user_guid()) {
$filter_context = 'mine';
}
-$body = elgg_view_layout('content', array(
+$vars = array(
'filter_context' => $filter_context,
'content' => $content,
'title' => $title
-));
+);
+
+// don't show filter if out of filter context
+if ($page_owner instanceof ElggGroup) {
+ $vars['filter'] = false;
+}
+
+$body = elgg_view_layout('content', $vars);
echo elgg_view_page($title, $body); \ No newline at end of file