aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/world.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/world.php')
-rw-r--r--mod/pages/world.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/pages/world.php b/mod/pages/world.php
index 7f32fbdec..8a8ede68d 100644
--- a/mod/pages/world.php
+++ b/mod/pages/world.php
@@ -12,7 +12,7 @@ global $CONFIG;
// 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($_SESSION['guid']);
}