From b25e6139e8d6b3dcb9ca76ac8c43729dc17eedb4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 7 Jul 2009 21:15:39 -0400 Subject: [PATCH] check for array before checking xmlrpc fault --- lib/ping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ping.php b/lib/ping.php index 3de541e9aa..d26c734175 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])"); -- 2.39.5