diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-10 12:22:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-10 12:22:18 +0000 |
commit | 08098a34f3d2fbb56899e27b6dd0de48470e40e4 (patch) | |
tree | 7a74caa7f08705bb7f8b4136419406379c603b12 /modules/profile | |
parent | afb923a00aecc1a2cebd34374a1936e50b536307 (diff) | |
download | brdo-08098a34f3d2fbb56899e27b6dd0de48470e40e4.tar.gz brdo-08098a34f3d2fbb56899e27b6dd0de48470e40e4.tar.bz2 |
- Patch #43989 by darius: critical bugfix: removed debug code from profile module.
Diffstat (limited to 'modules/profile')
-rw-r--r-- | modules/profile/profile.module | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module index fe631a568..280c5c0cc 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -207,7 +207,7 @@ function profile_browse() { else { // Compile a list of fields to show $fields = array(); - $result = db_query('SELECT name, title, type, weight FROM {profile_fields} WHERE visibility = %d ORDER BY weight', PROFILE_PUBLIC_LISTINGS); + $result = db_query('SELECT name, title, type, weight FROM {profile_fields} WHERE visibility = %d ORDER BY category, weight', PROFILE_PUBLIC_LISTINGS); while ($record = db_fetch_object($result)) { $fields[] = $record; } @@ -261,10 +261,6 @@ function profile_view_field($user, $field) { // Only allow browsing of private fields for admins $browse = user_access('administer users') || $field->visibility != PROFILE_PRIVATE; - if ($field->fid == 18 || $field->fid == 19 || $field->fid == 20) { - return; - } - if ($value = $user->{$field->name}) { switch ($field->type) { case 'textfield': |