X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxmlrpcclient.php;fp=classes%2Fxmlrpcclient.php;h=05cc1e7a6cf588c613cf5c058d0102cff7d5d736;hb=7196da2f6d88f876b8bd082497abe4c8170c65fd;hp=deae598ed75f7a6d285d44cabe675119338567e5;hpb=c80c472d71d62a56289b6d0c29a00be9cdcd4389;p=platal.git diff --git a/classes/xmlrpcclient.php b/classes/xmlrpcclient.php index deae598..05cc1e7 100644 --- a/classes/xmlrpcclient.php +++ b/classes/xmlrpcclient.php @@ -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,