1
0
Fork 0

Bugfix: The function "z_fetch_url" created warnings under certain circumstances.

This commit is contained in:
Michael Vogel 2015-05-16 22:38:41 +02:00
parent 72e3ffbb4d
commit 2038e65a57

View file

@ -18,8 +18,6 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_
'cookiejar'=>$cookiejar
));
return($ret['body']);
}}
@ -154,7 +152,7 @@ function z_fetch_url($url,$binary = false, &$redirects = 0, $opts=array()) {
if (filter_var($newurl, FILTER_VALIDATE_URL)) {
$redirects++;
@curl_close($ch);
return fetch_url($newurl,$binary,$redirects,$timeout,$accept_content,$cookiejar);
return z_fetch_url($newurl,$binary, $redirects, $opts);
}
}