related to bug 3086 : test for curl_init and curl_exec in fetchRemote
git-svn-id: http://piwigo.org/svn/trunk@28572 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
13a70520fa
commit
eaf4d5db52
1 changed files with 2 additions and 1 deletions
|
@ -2060,7 +2060,8 @@ function fetchRemote($src, &$dest, $get_data=array(), $post_data=array(), $user_
|
|||
is_resource($dest) or $dest = '';
|
||||
|
||||
// Try curl to read remote file
|
||||
if (function_exists('curl_init'))
|
||||
// TODO : remove all these @
|
||||
if (function_exists('curl_init') && function_exists('curl_exec'))
|
||||
{
|
||||
$ch = @curl_init();
|
||||
@curl_setopt($ch, CURLOPT_URL, $src);
|
||||
|
|
Loading…
Add table
Reference in a new issue