From 7729f1af19c81f5ad1e1d5bd6612ed81f3d92054 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 17 Aug 2008 19:41:57 +0000 Subject: Corrected the 'your groups' link git-svn-id: https://code.elgg.org/elgg/trunk@1989 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/groups/start.php') 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'); -- cgit v1.2.3