Skip to content
Snippets Groups Projects
Commit 750043b8 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Fixed bug introduced by previous patch.

parent a7713036
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -47,7 +47,7 @@ function user_load($array = array()) { ...@@ -47,7 +47,7 @@ function user_load($array = array()) {
$query .= "LOWER(u.$key) = '". strtolower(check_query($value)) ."' AND "; $query .= "LOWER(u.$key) = '". strtolower(check_query($value)) ."' AND ";
} }
} }
$result = db_query_range('SELECT u.* FROM {users} u WHERE $query u.status < 3', 0, 1); $result = db_query_range("SELECT u.* FROM {users} u WHERE $query u.status < 3", 0, 1);
$user = db_fetch_object($result); $user = db_fetch_object($result);
$user = drupal_unpack($user); $user = drupal_unpack($user);
......
...@@ -47,7 +47,7 @@ function user_load($array = array()) { ...@@ -47,7 +47,7 @@ function user_load($array = array()) {
$query .= "LOWER(u.$key) = '". strtolower(check_query($value)) ."' AND "; $query .= "LOWER(u.$key) = '". strtolower(check_query($value)) ."' AND ";
} }
} }
$result = db_query_range('SELECT u.* FROM {users} u WHERE $query u.status < 3', 0, 1); $result = db_query_range("SELECT u.* FROM {users} u WHERE $query u.status < 3", 0, 1);
$user = db_fetch_object($result); $user = db_fetch_object($result);
$user = drupal_unpack($user); $user = drupal_unpack($user);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment