]> git.mjollnir.org Git - moodle.git/commitdiff
Bugfix: The $this->response['faultCode'] was returning the 1th element of the $this...
authordonal72 <donal72>
Sun, 29 Apr 2007 13:55:11 +0000 (13:55 +0000)
committerdonal72 <donal72>
Sun, 29 Apr 2007 13:55:11 +0000 (13:55 +0000)
mnet/xmlrpc/client.php

index 8d17e2c32940739fad7380af1376b84c244b5937..deef29fa848e04e5e8c85f2e95da227de03d0edd 100644 (file)
@@ -284,7 +284,7 @@ class mnet_xmlrpc_client {
         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