Commit f4b53134 authored by Dries's avatar Dries

- Patch #18983 by Ber: small code improvement.

parent 3b5589f4
......@@ -49,7 +49,7 @@ function user_load($array = array()) {
$params = array();
foreach ($array as $key => $value) {
if ($key == 'pass') {
$query .= "u.$key = '%s' AND ";
$query .= "u.pass = '%s' AND ";
$params[] = md5($value);
}
else if ($key == 'uid') {
......
......@@ -49,7 +49,7 @@ function user_load($array = array()) {
$params = array();
foreach ($array as $key => $value) {
if ($key == 'pass') {
$query .= "u.$key = '%s' AND ";
$query .= "u.pass = '%s' AND ";
$params[] = md5($value);
}
else if ($key == 'uid') {
......
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