summaryrefslogtreecommitdiff
path: root/modules/profile/profile.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-09-18 00:04:24 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-09-18 00:04:24 +0000
commite18feedfdb429e35173b85fc7182aadabee0a166 (patch)
tree20c8e64d4db97378fad2bc27689b9b88e9390f1f /modules/profile/profile.module
parent6a1217aff08d3380658ef47e0e9d9d693683c66a (diff)
downloadbrdo-e18feedfdb429e35173b85fc7182aadabee0a166.tar.gz
brdo-e18feedfdb429e35173b85fc7182aadabee0a166.tar.bz2
#564394 by Berdir and Crell: Removed database BC layer. nah nah nah nah... hey hey hey... gooood byeeee...
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r--modules/profile/profile.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index efe8830fe..ac6cd9118 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -510,10 +510,10 @@ function profile_category_access($account, $category) {
return TRUE;
}
else {
- $category_visible = (bool) db_query_range('SELECT 1 FROM {profile_field} WHERE category = :category AND visibility <> :visibility', array(
+ $category_visible = (bool) db_query_range('SELECT 1 FROM {profile_field} WHERE category = :category AND visibility <> :visibility', 0, 1, array(
':category' => $category,
':visibility' => PROFILE_HIDDEN
- ), 0, 1)->fetchField();
+ ))->fetchField();
return user_edit_access($account) && $category_visible;
}
}