From: Andrew Dolgov Date: Sat, 23 Feb 2013 14:45:16 +0000 (+0400) Subject: fetch_file_contents: fix typos X-Git-Tag: 1.7.1~49 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=48b657fce133745856b5b23943f431e63294f0de;p=tt-rss.git fetch_file_contents: fix typos --- diff --git a/include/functions.php b/include/functions.php index d07288a9..2b7b7c58 100644 --- a/include/functions.php +++ b/include/functions.php @@ -296,7 +296,7 @@ curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT); curl_setopt($ch, CURLOPT_ENCODING , "gzip"); - curl_setopt($fp, CURLOPT_REFERER, $url); + curl_setopt($ch, CURLOPT_REFERER, $url); if ($post_query) { curl_setopt($ch, CURLOPT_POST, true); @@ -308,9 +308,9 @@ $contents = @curl_exec($ch); - if (curl_errno($fp) === 23 || curl_errno($fp) === 61) { - curl_setopt($fp, CURLOPT_ENCODING, 'none'); - $contents = @curl_exec($fp); + if (curl_errno($ch) === 23 || curl_errno($ch) === 61) { + curl_setopt($ch, CURLOPT_ENCODING, 'none'); + $contents = @curl_exec($ch); } if ($contents === false) {