aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/groups/all.php4
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);