- Fixed bug with user information not being shown in the profile forms.
parent
2f393aaf31
commit
fa192ae767
|
@ -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')) {
|
||||
|
|
|
@ -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')) {
|
||||
|
|
Loading…
Reference in New Issue