Commit ff6f545b authored by webchick's avatar webchick
Browse files

#478642 by daniel.bosen: Fix typo preventing profile fields from appearing on registration.

parent a8bfe4c9
......@@ -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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment