From fa192ae767312e60e1e168ec87b5611a43fa2fa2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Mon, 28 Jun 2004 08:32:16 +0000 Subject: [PATCH] - Fixed bug with user information not being shown in the profile forms. --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user.module b/modules/user.module index bc263e4280fc..f4eccbd23ec0 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 bc263e4280fc..f4eccbd23ec0 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')) { -- GitLab