X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxmlrpcclient.php;h=c359730f33921044b00f9a07187645051d4d8f5c;hb=3f0fafbde81f4dcb8067e4bc5fc7eca57f535ae2;hp=b33fcb3e90783b4538feda0e7a4ae8d6e97d1515;hpb=d3f26be98b879dc9df9be60fffe2f1e152b3b218;p=platal.git diff --git a/classes/xmlrpcclient.php b/classes/xmlrpcclient.php index b33fcb3..c359730 100644 --- a/classes/xmlrpcclient.php +++ b/classes/xmlrpcclient.php @@ -1,6 +1,6 @@ find_and_decode_xml($answer); if ($this->bt) { - if (isset($result['faultCode'])) { + if (is_array($result) && isset($result['faultCode'])) { $this->bt->update(0, $result['faultString']); } else { $this->bt->update(count($result));