From 1239ef02578a14983ffd8c23642e2e9b656147dd Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 24 Jun 2008 13:19:27 +0000 Subject: 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 --- mod/profile/edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); } -- cgit v1.2.3