aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/edit.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-24 13:19:27 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-24 13:19:27 +0000
commit1239ef02578a14983ffd8c23642e2e9b656147dd (patch)
treefeb614658907ab5882b3774645e7e60c1fe6d656 /mod/profile/edit.php
parent584dfc229c8ce984441a76465c7e489f2a13a390 (diff)
downloadelgg-1239ef02578a14983ffd8c23642e2e9b656147dd.tar.gz
elgg-1239ef02578a14983ffd8c23642e2e9b656147dd.tar.bz2
Fixes #69 - Clicking on profile "edit" causes crash.
I have retrieved the user again from $_SESSION['id'] since $_SESSION['user'] is not being set. This may point to a larger problem since the $_SESSION looks far from complete. git-svn-id: https://code.elgg.org/elgg/trunk@1105 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/edit.php')
-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());
}