Fix false positive in error detection in XMLRPC backtrace.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 24 Apr 2008 19:37:49 +0000 (21:37 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 24 Apr 2008 20:20:57 +0000 (22:20 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/xmlrpcclient.php

index dfc74da..be47a70 100644 (file)
@@ -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));