Commit fa192ae7 authored by Dries's avatar Dries
Browse files

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

parent 2f393aaf
......@@ -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')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment