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