]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check for array before checking xmlrpc fault
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 8 Jul 2009 01:15:39 +0000 (21:15 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 8 Jul 2009 01:15:39 +0000 (21:15 -0400)
lib/ping.php

index 3de541e9aaf721ec8cbac4e65aabdfbc34d727c9..d26c7341750600fb6db0fd95e4bfbc4f85e863c1 100644 (file)
@@ -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])");