mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-29 02:33:15 +00:00
Improved reachable check
This commit is contained in:
parent
f48b4ae535
commit
ba560c191b
1 changed files with 1 additions and 2 deletions
|
@ -1715,8 +1715,7 @@ function pumpio_fetchallcomments(&$a, $uid, $id) {
|
||||||
|
|
||||||
function pumpio_reachable($url) {
|
function pumpio_reachable($url) {
|
||||||
$data = z_fetch_url($url, false, $redirects, array('timeout'=>10));
|
$data = z_fetch_url($url, false, $redirects, array('timeout'=>10));
|
||||||
|
return(intval($data['return_code']) != 0);
|
||||||
return($data['success']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue