]> git.mxchange.org Git - friendica-addons.git/commitdiff
Improved reachable check
authorMichael Vogel <icarus@dabo.de>
Tue, 3 Nov 2015 00:10:07 +0000 (01:10 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 3 Nov 2015 00:10:07 +0000 (01:10 +0100)
pumpio/pumpio.php

index 46c055a63d56ba920192511530415b2f21fac1ef..74702414a9f3a682cbbe1a8a6a8a1def5c4dfe0e 100644 (file)
@@ -1715,8 +1715,7 @@ function pumpio_fetchallcomments(&$a, $uid, $id) {
 
 function pumpio_reachable($url) {
        $data = z_fetch_url($url, false, $redirects, array('timeout'=>10));
-
-       return($data['success']);
+       return(intval($data['return_code']) != 0);
 }
 
 /*