- Patch #245904 by boombatower: fixed E_NOTICE warning in the XML-RPC library.
parent
b9ce36b0d5
commit
e6a5793d0b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue