aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/edit.php')
-rw-r--r--mod/profile/edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/profile/edit.php b/mod/profile/edit.php
index 50f4b0955..a1afc26cc 100644
--- a/mod/profile/edit.php
+++ b/mod/profile/edit.php
@@ -17,8 +17,11 @@
if (!isloggedin()) forward();
// Get current user for now
- if (!$user = page_owner_entity()) {
+ if ($user = page_owner()) {
+ $user = page_owner_entity();
+ } else {
$user = $_SESSION['user'];
+ set_page_owner($user->getGUID());
}
// Get form, if we're allowed to edit