1
0
Fork 0

z_fetch_url now always returns an array

This commit is contained in:
Michael 2017-03-13 14:37:51 +00:00
parent 0cb3dc92d3
commit ae64f6f7e2

View 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);