aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/profile/edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/profile/edit.php b/mod/profile/edit.php
index a1afc26cc..69ca332e1 100644
--- a/mod/profile/edit.php
+++ b/mod/profile/edit.php
@@ -20,7 +20,8 @@
if ($user = page_owner()) {
$user = page_owner_entity();
} else {
- $user = $_SESSION['user'];
+ $user = $_SESSION['user'];
+ if (!$user) $user = get_entity($_SESSION['id']);
set_page_owner($user->getGUID());
}