aboutsummaryrefslogtreecommitdiff
path: root/mod/pages
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages')
-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 0b411b8b2..f00fb3acd 100644
--- a/mod/pages/world.php
+++ b/mod/pages/world.php
@@ -13,7 +13,7 @@ global $CONFIG;
$page_owner = elgg_get_page_owner();
if ($page_owner === false || is_null($page_owner)) {
$page_owner = get_loggedin_user();
- set_page_owner($_SESSION['guid']);
+ set_page_owner(get_loggedin_userid());
}
if (($page_owner instanceof ElggEntity) && ($page_owner->canWriteToContainer())){