From d5b45febd6e130dd0aa48588d3cb481f7f05eecb Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 30 Mar 2011 22:13:55 +0000 Subject: [PATCH] Test for value present before using. --- etc/inc/xmlrpc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/xmlrpc.inc b/etc/inc/xmlrpc.inc index d190a059fd..e722e9dd02 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;