aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/edit.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-20 18:08:05 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-20 18:08:05 +0000
commit735bb024f58cf28181fcb9baa62e4063b0f7171b (patch)
treef6e04d32e2453befbacaf8d75e636bb92507c27d /mod/profile/edit.php
parentb9a46dc335546fbf62ae4e05d1f69ec2fd7b07c3 (diff)
downloadelgg-735bb024f58cf28181fcb9baa62e4063b0f7171b.tar.gz
elgg-735bb024f58cf28181fcb9baa62e4063b0f7171b.tar.bz2
Fixed profile, and allowed admins to edit other profiles
git-svn-id: https://code.elgg.org/elgg/trunk@1036 36083f99-b078-4883-b0ff-0f9b5a30f544
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