diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/actions/forums/addpost.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/groups/actions/forums/addpost.php b/mod/groups/actions/forums/addpost.php index 0c2f1b210..d18cd1fd0 100644 --- a/mod/groups/actions/forums/addpost.php +++ b/mod/groups/actions/forums/addpost.php @@ -21,7 +21,6 @@ $topic_guid = (int) get_input('topic_guid');
$group_guid = (int) get_input('group_guid');
$post = get_input('topic_post');
- $access = get_input('access');
// Let's see if we can get an entity with the specified GUID, and that it's a group forum topic
if ($topic = get_entity($topic_guid)) {
@@ -30,7 +29,7 @@ //check the user posted a message
if($post){
// If posting the comment was successful, say so
- if ($topic->annotate('group_topic_post',$post,$access, $_SESSION['guid'])) {
+ if ($topic->annotate('group_topic_post',$post,$topic->access_id, $_SESSION['guid'])) {
system_message(elgg_echo("groupspost:success"));
|