From: Florent Bruneau Date: Thu, 24 Apr 2008 19:37:49 +0000 (+0200) Subject: Fix false positive in error detection in XMLRPC backtrace. X-Git-Tag: core/1.0.0~235 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=923dd5619163752a5938a7a19970f2efa0c9a643;p=platal.git Fix false positive in error detection in XMLRPC backtrace. Signed-off-by: Florent Bruneau --- diff --git a/classes/xmlrpcclient.php b/classes/xmlrpcclient.php index dfc74da..be47a70 100644 --- a/classes/xmlrpcclient.php +++ b/classes/xmlrpcclient.php @@ -109,7 +109,7 @@ class XmlrpcClient } $result = $this->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));