mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-02 19:42:54 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user