From 5720061f4012f544a14834b3b529679042c92d32 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 31 May 2010 15:58:16 +0000 Subject: remove the filter header if not logged in git-svn-id: http://code.elgg.org/elgg/trunk@6299 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/all.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/groups/all.php') 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 = "
".$objects."
"; $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); -- cgit v1.2.3