Commit 064089a3 authored by Dries's avatar Dries

- Added missing quotes around 'name'.  Spotted by James.
parent 84c8ba50
......@@ -211,7 +211,7 @@ function drupal_login($arguments) {
$argument = $arguments->getparam(1);
$password = $argument->scalarval();
if ($user = user_load(array(name => $username, 'pass' => $password, 'status' => 1))) {
if ($user = user_load(array('name' => $username, 'pass' => $password, 'status' => 1))) {
return new xmlrpcresp(new xmlrpcval($user->uid, 'int'));
}
else {
......
......@@ -211,7 +211,7 @@ function drupal_login($arguments) {
$argument = $arguments->getparam(1);
$password = $argument->scalarval();
if ($user = user_load(array(name => $username, 'pass' => $password, 'status' => 1))) {
if ($user = user_load(array('name' => $username, 'pass' => $password, 'status' => 1))) {
return new xmlrpcresp(new xmlrpcval($user->uid, 'int'));
}
else {
......
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