aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/welcome.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/welcome.php')
-rw-r--r--mod/pages/welcome.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/pages/welcome.php b/mod/pages/welcome.php
index f486f646d..10628b175 100644
--- a/mod/pages/welcome.php
+++ b/mod/pages/welcome.php
@@ -17,7 +17,7 @@ if ($container = (int) get_input('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());
}