X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=classes%2Fxmlrpcclient.php;h=05cc1e7a6cf588c613cf5c058d0102cff7d5d736;hb=d38ecb11de0d913af7533b957778feea865d0ef4;hp=deae598ed75f7a6d285d44cabe675119338567e5;hpb=e92ecb8c24421ca1dd4f87ad7478d0d8277e1f60;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,