Index: modules/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user.module,v retrieving revision 1.506 diff -u -r1.506 user.module --- modules/user.module 7 Sep 2005 20:56:00 -0000 1.506 +++ modules/user.module 8 Sep 2005 17:39:55 -0000 @@ -1363,7 +1363,8 @@ // If picture support is enabled, check whether the picture directory exists: if (variable_get('user_pictures', 0)) { - file_check_directory(file_create_path(variable_get('user_picture_path', 'pictures')), 1, 'user_picture_path'); + $picture_path = file_create_path(variable_get('user_picture_path', 'pictures')); + file_check_directory($picture_path, 1, 'user_picture_path'); } $group = form_radios(t('Picture support'), 'user_pictures', variable_get('user_pictures', 0), array(t('Disabled'), t('Enabled')), t('Enable picture support.'));