- Fixed bug with user information not being shown in the profile forms.

4.5.x
Dries Buytaert 2004-06-28 08:32:16 +00:00
parent 2f393aaf31
commit fa192ae767
2 changed files with 2 additions and 2 deletions

View File

@ -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')) {

View File

@ -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')) {