- Added missing quotes around 'name'. Spotted by James.

4.5.x
Dries Buytaert 2004-08-14 06:30:32 +00:00
parent 84c8ba504f
commit 064089a3fc
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {