X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fnetwork.php;h=f9d35c52c34557d387f09eb490b23aa3358119b2;hb=f94a10bf00de699a5f3d22ea74665053a5661175;hp=b0e71fab7f8b93ecbc520c9af4e14e05c713992d;hpb=77e8c44016a5c327e61e93724b8921cfd600b66c;p=friendica.git diff --git a/include/network.php b/include/network.php index b0e71fab7f..f9d35c52c3 100644 --- a/include/network.php +++ b/include/network.php @@ -72,8 +72,9 @@ function z_fetch_url($url,$binary = false, &$redirects = 0, $opts=array()) { $a = get_app(); $ch = @curl_init($url); - if(($redirects > 8) || (! $ch)) - return false; + if(($redirects > 8) || (! $ch)) { + return $ret; + } @curl_setopt($ch, CURLOPT_HEADER, true);