diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-17 19:41:57 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-17 19:41:57 +0000 |
commit | 7729f1af19c81f5ad1e1d5bd6612ed81f3d92054 (patch) | |
tree | 11384c1351f8b013b58ffb3d372f689470395535 /mod/groups | |
parent | 626fdb2cf94dfd8f119139771a9497b5935d02f5 (diff) | |
download | elgg-7729f1af19c81f5ad1e1d5bd6612ed81f3d92054.tar.gz elgg-7729f1af19c81f5ad1e1d5bd6612ed81f3d92054.tar.bz2 |
Corrected the 'your groups' link
git-svn-id: https://code.elgg.org/elgg/trunk@1989 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-rw-r--r-- | mod/groups/start.php | 2 |
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');
|