diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-04-18 20:35:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-04-18 20:35:45 +0000 |
commit | 318ac983e27067d1a9bc23b531b0da70ab2ffb7c (patch) | |
tree | 06a24cfa54a927f1336d7f1639b3eda9faa0a382 /includes/xmlrpc.inc | |
parent | bcfc0e651cf59937df63caa42410556cb37dff31 (diff) | |
download | brdo-318ac983e27067d1a9bc23b531b0da70ab2ffb7c.tar.gz brdo-318ac983e27067d1a9bc23b531b0da70ab2ffb7c.tar.bz2 |
- Patch #137138 by jvandyk: fixed problem with drupal_http_request() not setting the proper error code when a network effect occurs. Causes the XML-RPC backend to fail.
Diffstat (limited to 'includes/xmlrpc.inc')
-rw-r--r-- | includes/xmlrpc.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/xmlrpc.inc b/includes/xmlrpc.inc index f9e0886e2..c03b7b25c 100644 --- a/includes/xmlrpc.inc +++ b/includes/xmlrpc.inc @@ -440,7 +440,7 @@ function _xmlrpc() { $xmlrpc_request = xmlrpc_request($method, $args); $result = drupal_http_request($url, array("Content-Type" => "text/xml"), 'POST', $xmlrpc_request->xml); if ($result->code != 200) { - xmlrpc_error(-$result->code, $result->error); + xmlrpc_error($result->code, $result->error); return FALSE; } $message = xmlrpc_message($result->data); |