aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/actions/add.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/reportedcontent/actions/add.php')
-rw-r--r--mod/reportedcontent/actions/add.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/mod/reportedcontent/actions/add.php b/mod/reportedcontent/actions/add.php
index bfb5fcfb3..c37cae466 100644
--- a/mod/reportedcontent/actions/add.php
+++ b/mod/reportedcontent/actions/add.php
@@ -27,6 +27,7 @@
if ($entity->save()) {
system_message(elgg_echo('reportedcontent:success'));
+ $entity->state = "active";
forward($address);
} else {
register_error(elgg_echo('reportedcontent:failed'));