Bugfix: The function "z_fetch_url" created warnings under certain circumstances.
This commit is contained in:
parent
72e3ffbb4d
commit
2038e65a57
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue