aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/edit.php')
-rw-r--r--mod/pages/edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/pages/edit.php b/mod/pages/edit.php
index e7ce48e54..cc9955bc9 100644
--- a/mod/pages/edit.php
+++ b/mod/pages/edit.php
@@ -18,7 +18,7 @@ if ($container = $pages->container_guid) {
$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());
}