aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-05-30 13:01:20 +0000
committermistic100 <mistic@piwigo.org>2014-05-30 13:01:20 +0000
commiteaf4d5db5290d6fd67d7768fcb8b612ce476debd (patch)
tree6d1e2174c68abc34d0f28b3a5a7a51e9f18a9637 /admin/include/functions.php
parent13a70520faa26eb23832b716d8a728fe1aff2c76 (diff)
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
Diffstat (limited to 'admin/include/functions.php')
-rw-r--r--admin/include/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index a3778f595..da4e93b60 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -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);