From e6a5793d0b08e2e3d32bbb8ec2980fe5e1a9ded2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 14 Apr 2008 17:58:16 +0000 Subject: [PATCH] - Patch #245904 by boombatower: fixed E_NOTICE warning in the XML-RPC library. --- includes/xmlrpc.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/xmlrpc.inc b/includes/xmlrpc.inc index 569871b8fd6..c01f8e47b27 100644 --- a/includes/xmlrpc.inc +++ b/includes/xmlrpc.inc @@ -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); }