From eaf4d5db5290d6fd67d7768fcb8b612ce476debd Mon Sep 17 00:00:00 2001 From: mistic100 Date: Fri, 30 May 2014 13:01:20 +0000 Subject: 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 --- admin/include/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'admin/include') 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); -- cgit v1.2.3