Commit 860f49ba authored by Dries's avatar Dries
Browse files

- Patch #73582 by chx: fixed glitch with return value checking in XML-RPC client.

parent ca2d2285
...@@ -345,7 +345,7 @@ function xmlrpc_request($method, $args) { ...@@ -345,7 +345,7 @@ function xmlrpc_request($method, $args) {
function xmlrpc_error($code = NULL, $message = NULL) { function xmlrpc_error($code = NULL, $message = NULL) {
static $xmlrpc_error; static $xmlrpc_error;
if ($code) { if (isset($code)) {
$xmlrpc_error = new stdClass(); $xmlrpc_error = new stdClass();
$xmlrpc_error->is_error = TRUE; $xmlrpc_error->is_error = TRUE;
$xmlrpc_error->code = $code; $xmlrpc_error->code = $code;
......
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