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

merge-requests/26/head
Dries Buytaert 2008-04-14 17:58:16 +00:00
parent b9ce36b0d5
commit e6a5793d0b
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}