diff options
Diffstat (limited to 'modules/profile.module')
-rw-r--r-- | modules/profile.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/profile.module b/modules/profile.module index ffef5f58a..60b0159c8 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -219,7 +219,7 @@ function profile_load_profile(&$user) { } function profile_save_profile(&$edit, &$user, $category) { - if (($_GET['q'] == 'user/register') ? 1 : 0) { + if ($_GET['q'] == 'user/register' || $_GET['q'] == 'admin/user/create') { $result = db_query('SELECT fid, name, type FROM {profile_fields} WHERE register = 1 AND visibility != %d ORDER BY category, weight', PROFILE_HIDDEN); } else { @@ -320,7 +320,7 @@ function _profile_form_explanation($field) { function profile_form_profile($edit, $user, $category) { - if (($_GET['q'] == 'user/register') ? 1 : 0) { + if ($_GET['q'] == 'user/register' || $_GET['q'] == 'admin/user/create') { $result = db_query('SELECT * FROM {profile_fields} WHERE register = 1 ORDER BY category, weight'); } else { @@ -431,7 +431,7 @@ function _profile_map_month($month) { function profile_validate_profile($edit, $category) { - if (($_GET['q'] == 'user/register') ? 1 : 0) { + if ($_GET['q'] == 'user/register' || $_GET['q'] == 'admin/user/create') { $result = db_query('SELECT * FROM {profile_fields} WHERE register = 1 ORDER BY category, weight'); } else { |