summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/profile/profile.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 6bdf7caf7..44a93a635 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -618,7 +618,7 @@ function _profile_get_fields($category, $register = FALSE) {
$query->where('LOWER(category) = LOWER(:category)', array(':category' => $category));
}
if (!user_access('administer users')) {
- $query->condition('visibility', PROFILE_HIDDEN);
+ $query->condition('visibility', PROFILE_HIDDEN, '<>');
}
return $query
->fields('profile_field')