diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2006-10-22 17:47:51 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2006-10-22 17:47:51 +0000 |
commit | e070e83238ff8007bf63b51f6bbf15d51c3b4827 (patch) | |
tree | 907759a600872c3299225bb3585d4c0749128c61 | |
parent | 76d6439c2f91844adc432512d7f21bd708d47f6d (diff) | |
download | brdo-e070e83238ff8007bf63b51f6bbf15d51c3b4827.tar.gz brdo-e070e83238ff8007bf63b51f6bbf15d51c3b4827.tar.bz2 |
- Patch #90662 by hunmonk: profile registration fields broken for user admins
-rw-r--r-- | modules/profile/profile.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module index d3664ff4d..c6da58721 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -631,7 +631,7 @@ function profile_form_profile($edit, $user, $category) { if (arg(0) == 'user' && arg(1) == 'register') { $result = db_query('SELECT * FROM {profile_fields} WHERE visibility != %d AND register = 1 ORDER BY category, weight', PROFILE_HIDDEN); } - elseif (arg(0) == 'admin' && arg(1) == 'user' && arg(2) == 'create') { + elseif (arg(0) == 'admin' && arg(1) == 'user' && arg(2) == 'user' && arg(3) == 'create') { $result = db_query('SELECT * FROM {profile_fields} WHERE register = 1 ORDER BY category, weight'); } elseif (user_access('administer users')) { |