From: Michael Date: Mon, 13 Mar 2017 14:37:51 +0000 (+0000) Subject: z_fetch_url now always returns an array X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae64f6f7e293dfc254e0c599349460ca3094e53c;p=friendica.git z_fetch_url now always returns an array --- 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);