diff options
Diffstat (limited to 'mod/reportedcontent/actions/add.php')
-rw-r--r-- | mod/reportedcontent/actions/add.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/reportedcontent/actions/add.php b/mod/reportedcontent/actions/add.php index c43e14baa..de1c1d3db 100644 --- a/mod/reportedcontent/actions/add.php +++ b/mod/reportedcontent/actions/add.php @@ -26,7 +26,7 @@ $entity->access_id = $access;
if ($entity->save()) {
- if (!trigger_plugin_hook('reportedcontent:add', $entity->type, array('entity'=>$entity), true)) {
+ if (!trigger_plugin_hook('reportedcontent:add', $reported->type, array('entity'=>$reported), true)) {
$entity->delete();
register_error(elgg_echo('reportedcontent:failed'));
} else {
|