X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxmlrpcclient.php;h=c359730f33921044b00f9a07187645051d4d8f5c;hb=c291ca5486bce705cd3dfd81065cbd2d92b96da5;hp=dfc74da3a449c16ac6b2da38cb33a16164c18721;hpb=dd9bac8f7903e9924525ad8db3e38650ff5ad1b6;p=platal.git diff --git a/classes/xmlrpcclient.php b/classes/xmlrpcclient.php index dfc74da..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));