diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 06:44:31 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 06:44:31 +0000 |
commit | 85213d3bee5c4373f12378c3fa910f0e93e6d678 (patch) | |
tree | d97cce804430817ebc6217fb25fb69e09171bf50 /modules/profile/profile.module | |
parent | 83c97345e8eada544d7da4586e2c77db469ed5b1 (diff) | |
download | brdo-85213d3bee5c4373f12378c3fa910f0e93e6d678.tar.gz brdo-85213d3bee5c4373f12378c3fa910f0e93e6d678.tar.bz2 |
#279851 by catch, et al: Replace LOWER() with db_select() and LIKE() where possible.
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r-- | modules/profile/profile.module | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 244c8804d..38642d538 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -610,8 +610,7 @@ function _profile_get_fields($category, $register = FALSE) { $query->condition('register', 1); } else { - // Use LOWER(:category) instead of PHP's strtolower() to avoid UTF-8 conversion issues. - $query->where('LOWER(category) = LOWER(:category)', array(':category' => $category)); + $query->condition('category', db_like($category), 'LIKE'); } if (!user_access('administer users')) { $query->condition('visibility', PROFILE_HIDDEN, '<>'); |