aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/start.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 7b7a4a854..60a54dc6b 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -124,7 +124,7 @@
add_submenu_item(elgg_echo('groups:all'), $CONFIG->wwwroot . "pg/groups/world/", 'groupslinks');
} else if (page_owner()) {
$page_owner = page_owner_entity();
- add_submenu_item(elgg_echo('groups:yours'), $CONFIG->wwwroot . "pg/groups/owned/" . $page_owner->username, 'groupslinks');
+ if (isloggedin()) add_submenu_item(elgg_echo('groups:yours'), $CONFIG->wwwroot . "pg/groups/owned/" . $_SESSION['user']->username, 'groupslinks');
add_submenu_item(elgg_echo('groups:all'), $CONFIG->wwwroot . "pg/groups/world/", 'groupslinks');
} else {
add_submenu_item(elgg_echo('groups:all'), $CONFIG->wwwroot . "pg/groups/world/", 'groupslinks');