X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxmlrpcclient.php;h=c359730f33921044b00f9a07187645051d4d8f5c;hb=bfb9093b94f6403150200e3081c895cf5e48f563;hp=e16f19ff9ce7eaa7f7453eece021173f906b0b94;hpb=a7de4ef724d1a3b0bf978a50ce7cc9d23412c7a0;p=platal.git diff --git a/classes/xmlrpcclient.php b/classes/xmlrpcclient.php index e16f19f..c359730 100644 --- a/classes/xmlrpcclient.php +++ b/classes/xmlrpcclient.php @@ -1,6 +1,6 @@ bt) { + $this->bt->start($method . "\n" . var_export($args, true)); + } $answer = $this->http_post($query, $this->urlparts); + if ($this->bt) { + $this->bt->stop(); + } $result = $this->find_and_decode_xml($answer); + if ($this->bt) { + if (is_array($result) && isset($result['faultCode'])) { + $this->bt->update(0, $result['faultString']); + } else { + $this->bt->update(count($result)); + } + } if (is_array($result) && isset($result['faultCode'])) { trigger_error("Error in xmlrpc call $function\n".