Test for value present before using.

This commit is contained in:
Ermal 2011-03-30 22:13:55 +00:00
parent ccf46756fd
commit d5b45febd6

View File

@ -129,7 +129,7 @@ function xmlrpc_auth(&$params) {
array_shift($params);
unset($params['xmlrpcauth']);
return true;
} else if (authenticate_user("admin", $params['xmlrpcauth'])) {
} else if (!empty($params['xmlrpcauth']) && authenticate_user("admin", $params['xmlrpcauth'])) {
array_shift($params);
unset($params['xmlrpcauth']);
return true;