PlFlagset and PlDBTableEntry are exportable.
[platal.git] / classes / xmlrpcclient.php
index dfc74da..c359730 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2010 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -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));