summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index bc263e428..f4eccbd23 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1072,7 +1072,7 @@ function user_edit_validate($uid, &$edit) {
function user_edit($category = 'account') {
global $user;
- $account = $user->uid != arg(1) ? user_load(array('uid' => arg(1))) : $user;
+ $account = user_load(array('uid' => arg(1)));
$edit = $_POST['op'] ? $_POST['edit'] : object2array($account);
if ($_POST['op'] == t('Save account')) {