diff options
-rw-r--r-- | etc/inc/xmlrpc.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/xmlrpc.inc b/etc/inc/xmlrpc.inc index d190a05..e722e9d 100644 --- a/etc/inc/xmlrpc.inc +++ b/etc/inc/xmlrpc.inc @@ -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; |