diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-02-28 20:10:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-02-28 20:10:34 +0000 |
commit | 897817eb0c431a4ea6585dea470c8bc43e08b824 (patch) | |
tree | a5e99e8b58cb9956a8a24924cfd66afa15f836c2 /modules/system | |
parent | 994fafcebf25c17776026194ca01b04a170d6d50 (diff) | |
download | brdo-897817eb0c431a4ea6585dea470c8bc43e08b824.tar.gz brdo-897817eb0c431a4ea6585dea470c8bc43e08b824.tar.bz2 |
- Patch #279851 by catch, David Strauss, Damien Tournoud, asimmonds, c960657, JohnAlbin, drawk, pwolanin, robertDouglass, coltrane: replace LOWER() with db_select() and LIKE() where possible.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index c414d99b1..ccdcad65c 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1764,7 +1764,7 @@ function system_update_7003() { )); $or = db_condition('or'); foreach ($result as $allowed) { - $or->where('LOWER(ip) LIKE LOWER(:mask)', array(':mask' => $allowed->mask)); + $or->condition('ip', $allowed->mask, 'LIKE'); } if (count($or)) { db_delete('blocked_ips') |