diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-31 15:58:16 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-31 15:58:16 +0000 |
commit | 5720061f4012f544a14834b3b529679042c92d32 (patch) | |
tree | 497128d2e2e84620488e4297f9c14a9f0bf287e1 /mod/groups/all.php | |
parent | 46c9b92c5624c022e58f5befb4678c95d2eeaf85 (diff) | |
download | elgg-5720061f4012f544a14834b3b529679042c92d32.tar.gz elgg-5720061f4012f544a14834b3b529679042c92d32.tar.bz2 |
remove the filter header if not logged in
git-svn-id: http://code.elgg.org/elgg/trunk@6299 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/all.php')
-rw-r--r-- | mod/groups/all.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/groups/all.php b/mod/groups/all.php index f2edac9c3..83451510d 100644 --- a/mod/groups/all.php +++ b/mod/groups/all.php @@ -61,7 +61,9 @@ $objects = "<div class='group_listings'>".$objects."</div>"; $title = sprintf(elgg_echo("groups:all"), page_owner_entity()->name); - $area1 .= elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'groups', 'new_link' => "{$CONFIG->url}pg/groups/new")); + if(isloggedin()){ + $area1 .= elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'groups', 'new_link' => "{$CONFIG->url}pg/groups/new")); + } $area1 .= elgg_view("groups/group_sort_menu", array("count" => $group_count, "filter" => $filter)) . $objects; $body = elgg_view_layout('one_column_with_sidebar', $area1, $area2); |