Release plat/al core v1.1.13
[platal.git] / classes / xmlrpcclient.php
index 55eb51a..d9365f7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -109,7 +109,9 @@ class XmlrpcClient
         }
         if (is_null($answer)) {
             Platal::page()->trigError("L'accès aux listes de diffusion n'est pas disponible actuellement.");
-            $this->bt->update(0, "Connection failed");
+            if ($this->bt) {
+                $this->bt->update(0, "Connection failed");
+            }
             return null;
         }
         Platal::assert(starts_with($answer, 'HTTP/1.0 200 OK'), "HTTP Error:\n" . $answer,
@@ -137,5 +139,5 @@ class XmlrpcClient
     }
 }
 
-// vim:set et sw=4 sts=4 sws=4 enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 fenc=utf-8:
 ?>