summaryrefslogtreecommitdiff
path: root/lib/ping.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-07 21:15:39 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-07 21:15:39 -0400
commitb25e6139e8d6b3dcb9ca76ac8c43729dc17eedb4 (patch)
tree4b7a9f42532e0646318fca19ed26c9eaa27f3370 /lib/ping.php
parent673cdab874422634a3be8afc009fbd983c73e572 (diff)
check for array before checking xmlrpc fault
Diffstat (limited to 'lib/ping.php')
-rw-r--r--lib/ping.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ping.php b/lib/ping.php
index 3de541e9a..d26c73417 100644
--- a/lib/ping.php
+++ b/lib/ping.php
@@ -59,7 +59,7 @@ function ping_broadcast_notice($notice) {
$response = xmlrpc_decode($file);
- if (xmlrpc_is_fault($response)) {
+ if (is_array($response) && xmlrpc_is_fault($response)) {
common_log(LOG_WARNING,
"XML-RPC error for ping ($notify_url, $notice->id) ".
"$response[faultString] ($response[faultCode])");