check for array before checking xmlrpc fault
This commit is contained in:
parent
673cdab874
commit
b25e6139e8
@ -59,7 +59,7 @@ function ping_broadcast_notice($notice) {
|
|||||||
|
|
||||||
$response = xmlrpc_decode($file);
|
$response = xmlrpc_decode($file);
|
||||||
|
|
||||||
if (xmlrpc_is_fault($response)) {
|
if (is_array($response) && xmlrpc_is_fault($response)) {
|
||||||
common_log(LOG_WARNING,
|
common_log(LOG_WARNING,
|
||||||
"XML-RPC error for ping ($notify_url, $notice->id) ".
|
"XML-RPC error for ping ($notify_url, $notice->id) ".
|
||||||
"$response[faultString] ($response[faultCode])");
|
"$response[faultString] ($response[faultCode])");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user