Commit 00ceea09 authored by Dries's avatar Dries

- Fixed stupid 'SELECT u.* FROM users u WHERE LOWER(u.uid) = 'S' AND u.status...

- Fixed stupid 'SELECT u.* FROM users u WHERE LOWER(u.uid) = 'S' AND  u.status < N LIMIT N, N' query.
parent 5a90260d
......@@ -48,6 +48,9 @@ function user_load($array = array()) {
if ($key == 'pass') {
$query .= "u.$key = '". md5($value) ."' AND ";
}
else if ($key == 'uid') {
$query .= "u.uid = ". check_query($value) ." AND ";
}
else {
$query .= "LOWER(u.$key) = '". strtolower(check_query($value)) ."' AND ";
}
......
......@@ -48,6 +48,9 @@ function user_load($array = array()) {
if ($key == 'pass') {
$query .= "u.$key = '". md5($value) ."' AND ";
}
else if ($key == 'uid') {
$query .= "u.uid = ". check_query($value) ." AND ";
}
else {
$query .= "LOWER(u.$key) = '". strtolower(check_query($value)) ."' AND ";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment