diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-03-30 15:15:40 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-03-30 15:15:40 +0000 |
commit | 27b45eeb4882e6c8d5de65d913a148437e91b50c (patch) | |
tree | b90fa9d4c2d8c75e33126f6a67f0f968255c1d8e /lib/ping.php | |
parent | 8c073a34ce472fc8d0385659a222339a5ba4254a (diff) | |
parent | 559cf75edbbf60a0d9f8e4991333d85a79359a99 (diff) |
Merge branch '0.7.x' into 0.8.x
Diffstat (limited to 'lib/ping.php')
-rw-r--r-- | lib/ping.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ping.php b/lib/ping.php index d7472b920..3de541e9a 100644 --- a/lib/ping.php +++ b/lib/ping.php @@ -50,7 +50,15 @@ function ping_broadcast_notice($notice) { "User-Agent: Laconica/".LACONICA_VERSION."\r\n", 'content' => $req))); $file = file_get_contents($notify_url, false, $context); + + if ($file === false || mb_strlen($file) == 0) { + common_log(LOG_WARNING, + "XML-RPC empty results for ping ($notify_url, $notice->id) "); + continue; + } + $response = xmlrpc_decode($file); + if (xmlrpc_is_fault($response)) { common_log(LOG_WARNING, "XML-RPC error for ping ($notify_url, $notice->id) ". |