From ba560c191b15c8a7d551b7ae12423901ac998dbb Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 3 Nov 2015 01:10:07 +0100 Subject: [PATCH] Improved reachable check --- pumpio/pumpio.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index 46c055a6..74702414 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -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); } /* -- 2.39.5