summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-07-28 20:18:11 +0000
committerDries Buytaert <dries@buytaert.net>2004-07-28 20:18:11 +0000
commitbd4f4ebbc33d962d9c05552d0a7167ba9cfb5bfc (patch)
treea7d585ae58870831a4158bfb6d163236ee3c76a0 /modules/user.module
parentd21207ae85e8dc27aebb38fc681db85371f429de (diff)
downloadbrdo-bd4f4ebbc33d962d9c05552d0a7167ba9cfb5bfc.tar.gz
brdo-bd4f4ebbc33d962d9c05552d0a7167ba9cfb5bfc.tar.bz2
- Patch #9547 by Eric: fixed avatar/picture upload bug.
Diffstat (limited to 'modules/user.module')
-rw-r--r--modules/user.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user.module b/modules/user.module
index 59f1a1d3d..ea10b2cd6 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -1053,6 +1053,7 @@ function user_edit_validate($uid, &$edit) {
// If required, validate the uploaded picture.
if ($file = file_check_upload('picture')) {
+ $user = user_load(array('uid' => $uid));
user_validate_picture($file, $edit, $user);
}