diff --git a/modules/user.module b/modules/user.module index bc263e4280fce805e98eed17e5316484940b1855..f4eccbd23ec0cd75f0d6a76f07ebdafbf166d529 100644 --- a/modules/user.module +++ b/modules/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')) { diff --git a/modules/user/user.module b/modules/user/user.module index bc263e4280fce805e98eed17e5316484940b1855..f4eccbd23ec0cd75f0d6a76f07ebdafbf166d529 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')) {