From 7325d9435831b43c91af6eb3d13b259c02b2a439 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 20 Jun 2008 13:54:14 +0000 Subject: Widget gallery updates - internationalised and more git-svn-id: https://code.elgg.org/elgg/trunk@1025 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/edit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/profile') 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()) { -- cgit v1.2.3