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:
mistic100 2014-05-30 13:01:20 +00:00
parent 13a70520fa
commit eaf4d5db52

View file

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