aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/groups/membership.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/groups/membership.php b/mod/groups/membership.php
index fc0b5ab54..abb358f40 100644
--- a/mod/groups/membership.php
+++ b/mod/groups/membership.php
@@ -12,10 +12,14 @@
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+ gatekeeper();
+
$limit = get_input("limit", 10);
$offset = get_input("offset", 0);
- $title = sprintf(elgg_echo("groups:yours"),page_owner_entity()->name);
+ if (page_owner() == $_SESSION['user']->guid) {
+ $title = elgg_echo("groups:yours");
+ } else $title = sprintf(elgg_echo("groups:owned"),page_owner_entity()->name);
// Get objects
$area2 = elgg_view_title($title);