aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/actions
diff options
context:
space:
mode:
Diffstat (limited to 'mod/reportedcontent/actions')
-rw-r--r--mod/reportedcontent/actions/add.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/reportedcontent/actions/add.php b/mod/reportedcontent/actions/add.php
index 6e86c4cf6..0611f7402 100644
--- a/mod/reportedcontent/actions/add.php
+++ b/mod/reportedcontent/actions/add.php
@@ -15,7 +15,7 @@
$report = new ElggObject;
$report->subtype = "reported_content";
- $report->owner_guid = $_SESSION['user']->getGUID();
+ $report->owner_guid = get_loggedin_userid();
$report->title = $title;
$report->address = $address;
$report->description = $description;