aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/lib/groups.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/lib/groups.php')
-rw-r--r--mod/groups/lib/groups.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php
index 563ed3cff..dc796d159 100644
--- a/mod/groups/lib/groups.php
+++ b/mod/groups/lib/groups.php
@@ -188,6 +188,9 @@ function groups_handle_profile_page($guid) {
$autofeed = true;
$group = get_entity($guid);
+ if (!$group) {
+ forward('pg/groups/all');
+ }
elgg_push_breadcrumb($group->name);