mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Bugfix: The $this->response['faultCode'] was returning the 1th element of the $this->response string (because a non-empty string == 1).
This commit is contained in:
parent
6172153106
commit
4e0d03df62
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ class mnet_xmlrpc_client {
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
|
|
||||||
// xmlrpc errors are pushed onto the $this->error stack
|
// 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 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 faultString is the new key - let's save it and try again
|
||||||
// The re_key attribute stops us from getting into a loop
|
// The re_key attribute stops us from getting into a loop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue