$a = get_app();
$ch = @curl_init($url);
- if(($redirects > 8) || (! $ch))
- return false;
+ if(($redirects > 8) || (! $ch)) {
+ return $ret;
+ }
@curl_setopt($ch, CURLOPT_HEADER, true);
logger('fetch_url error fetching '.$url.': '.curl_error($ch), LOGGER_NORMAL);
}
+ $ret['errno'] = curl_errno($ch);
+
$base = $s;
$curl_info = @curl_getinfo($ch);