Browse files

Bugfix: The $this->response['faultCode'] was returning the 1th elemen…

…t of the $this->response string (because a non-empty string == 1).
  • Loading branch information...
1 parent 6172153 commit 4e0d03df6249cee114ccf7b675e85b0442678e99 donal72 committed Apr 29, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 mnet/xmlrpc/client.php
View
2 mnet/xmlrpc/client.php
@@ -284,7 +284,7 @@ function send($mnet_peer) {
curl_close($ch);
// xmlrpc errors are pushed onto the $this->error stack
- if (isset($this->response['faultCode'])) {
+ if (is_array($this->response) && array_key_exists('faultCode', $this->response)) {
// The faultCode 7025 means we tried to connect with an old SSL key
// The faultString is the new key - let's save it and try again
// The re_key attribute stops us from getting into a loop

0 comments on commit 4e0d03d

Please sign in to comment.