From 923dd5619163752a5938a7a19970f2efa0c9a643 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 24 Apr 2008 21:37:49 +0200 Subject: [PATCH] Fix false positive in error detection in XMLRPC backtrace. Signed-off-by: Florent Bruneau --- classes/xmlrpcclient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.1.4