summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-20 02:23:17 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-20 02:23:17 +0000
commitd30a41e79147b29c22027e64fdf53e34d24bafe0 (patch)
tree67097bfe860bb00973225cb4213e19e6fcc9dc92 /modules/user/user.module
parent3b4e3d0334f36d76329d40ae5f8795287ec6a85e (diff)
downloadbrdo-d30a41e79147b29c22027e64fdf53e34d24bafe0.tar.gz
brdo-d30a41e79147b29c22027e64fdf53e34d24bafe0.tar.bz2
Roll-back of #333054; needs more discussion.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 37e88e5a5..1af5f6de9 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -216,12 +216,14 @@ function user_load_multiple($uids = array(), $conditions = array(), $reset = FAL
}
// If the conditions array is populated, add those to the query.
if ($conditions) {
+ // TODO D7: Using LIKE() to get a case insensitive comparison because Crell
+ // and chx promise that dbtng will map it to ILIKE in postgres.
if (isset($conditions['name'])) {
- $query->where('LOWER(u.name) = LOWER(:name)', array(':name' => $conditions['name']));
+ $query->condition('u.name', $conditions['name'], 'LIKE');
unset($conditions['name']);
}
if (isset($conditions['mail'])) {
- $query->where('LOWER(u.mail) = LOWER(:mail)', array(':mail' => $conditions['mail']));
+ $query->condition('u.mail', $conditions['mail'], 'LIKE');
unset($conditions['mail']);
}
foreach ($conditions as $field => $value) {