aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/add.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/reportedcontent/add.php')
-rw-r--r--mod/reportedcontent/add.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/reportedcontent/add.php b/mod/reportedcontent/add.php
index fd90e0f5e..9b6032d04 100644
--- a/mod/reportedcontent/add.php
+++ b/mod/reportedcontent/add.php
@@ -14,7 +14,7 @@ gatekeeper();
// Get the current page's owner
$page_owner = page_owner_entity();
if ($page_owner === false || is_null($page_owner)) {
- $page_owner = $_SESSION['user'];
+ $page_owner = get_loggedin_user();
set_page_owner($page_owner->getGUID());
}