]> git.mxchange.org Git - friendica.git/commitdiff
z_fetch_url now always returns an array
authorMichael <heluecht@pirati.ca>
Mon, 13 Mar 2017 14:37:51 +0000 (14:37 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 13 Mar 2017 14:37:51 +0000 (14:37 +0000)
include/network.php

index b0e71fab7f8b93ecbc520c9af4e14e05c713992d..f9d35c52c34557d387f09eb490b23aa3358119b2 100644 (file)
@@ -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);