aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/topicposts.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/mod/groups/topicposts.php b/mod/groups/topicposts.php
index 6a732ca52..d16b33148 100644
--- a/mod/groups/topicposts.php
+++ b/mod/groups/topicposts.php
@@ -19,6 +19,7 @@
// get the entity from id
$topic = get_entity(get_input('topic'));
+ if (!$topic) forward();
// Display them
$area2 = elgg_view("forum/viewposts", array('entity' => $topic));