mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 11:28:49 +00:00
Bugfixing for CurlResult
This commit is contained in:
parent
ce2af45897
commit
2e8d9ba39b
9 changed files with 13 additions and 14 deletions
|
@ -1691,8 +1691,7 @@ function pumpio_fetchallcomments(App $a, $uid, $id)
|
|||
|
||||
function pumpio_reachable($url)
|
||||
{
|
||||
$data = Network::curl($url, false, $redirects, ['timeout'=>10]);
|
||||
return intval($data['return_code']) != 0;
|
||||
return Network::curl($url, false, $redirects, ['timeout'=>10])->isSuccess();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue