BUG 6856 Error while downloading a pm library process curl_init is not definded

The validation was added
This commit is contained in:
Carlos Pacha
2011-05-11 18:33:07 -04:00
parent 2a11ad90dd
commit b6b05023de

View File

@@ -3321,6 +3321,9 @@ class Processes {
throw ( new Exception ("File $newfilename not opened") );
}
if (!function_exists('curl_init')){
throw ( new Exception (G::LoadTranslation('ID_CURLFUN_ISUNDEFINED')) );die();
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_FILE, $out);