Commit e6a5793d authored by Dries's avatar Dries
Browse files

- Patch #245904 by boombatower: fixed E_NOTICE warning in the XML-RPC library.

parent b9ce36b0
......@@ -465,7 +465,7 @@ function _xmlrpc() {
*/
function xmlrpc_errno() {
$error = xmlrpc_error();
return $error->code;
return ($error != NULL ? $error->code : NULL);
}
/**
......@@ -473,5 +473,5 @@ function xmlrpc_errno() {
*/
function xmlrpc_error_msg() {
$error = xmlrpc_error();
return $error->message;
return ($error != NULL ? $error->message : NULL);
}
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