comparison includes/xmlrpc.inc @ 7:fff6d4c8c043 6.3

Drupal 6.3
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:30:28 +0100
parents 2427550111ae
children 589fb7c02327
comparison
equal deleted inserted replaced
6:2cfdc3c92142 7:fff6d4c8c043
1 <?php 1 <?php
2 // $Id: xmlrpc.inc,v 1.47.2.1 2008/03/21 22:12:56 goba Exp $ 2 // $Id: xmlrpc.inc,v 1.47.2.2 2008/04/14 18:01:19 dries Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Drupal XML-RPC library. Based on the IXR - The Incutio XML-RPC Library - (c) Incutio Ltd 2002-2005 6 * Drupal XML-RPC library. Based on the IXR - The Incutio XML-RPC Library - (c) Incutio Ltd 2002-2005
7 * Version 1.7 (beta) - Simon Willison, 23rd May 2005 7 * Version 1.7 (beta) - Simon Willison, 23rd May 2005
463 /** 463 /**
464 * Returns the last XML-RPC client error number 464 * Returns the last XML-RPC client error number
465 */ 465 */
466 function xmlrpc_errno() { 466 function xmlrpc_errno() {
467 $error = xmlrpc_error(); 467 $error = xmlrpc_error();
468 return $error->code; 468 return ($error != NULL ? $error->code : NULL);
469 } 469 }
470 470
471 /** 471 /**
472 * Returns the last XML-RPC client error message 472 * Returns the last XML-RPC client error message
473 */ 473 */
474 function xmlrpc_error_msg() { 474 function xmlrpc_error_msg() {
475 $error = xmlrpc_error(); 475 $error = xmlrpc_error();
476 return $error->message; 476 return ($error != NULL ? $error->message : NULL);
477 } 477 }