mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-17617 - fixed regressions - missing $ch
This commit is contained in:
parent
aa944588ff
commit
7fb90df073
@ -344,7 +344,10 @@ function download_file_content($url, $headers=null, $postdata=null, $fullrespons
|
||||
// check if proxy (if used) should be bypassed for this url
|
||||
$proxybypass = is_proxybypass($url);
|
||||
|
||||
$ch = curl_init($url);
|
||||
if (!$ch = curl_init($url)) {
|
||||
debugging('Can not init curl.');
|
||||
return false;
|
||||
}
|
||||
|
||||
// set extra headers
|
||||
if (is_array($headers) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user