diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 13:19:27 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 13:19:27 +0000 |
commit | 1239ef02578a14983ffd8c23642e2e9b656147dd (patch) | |
tree | feb614658907ab5882b3774645e7e60c1fe6d656 /mod/profile/edit.php | |
parent | 584dfc229c8ce984441a76465c7e489f2a13a390 (diff) | |
download | elgg-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.php | 3 |
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());
}
|