]> git.wh0rd.org - tt-rss.git/commitdiff
fetch_file_contents: fix typos
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 23 Feb 2013 14:45:16 +0000 (18:45 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 23 Feb 2013 14:45:16 +0000 (18:45 +0400)
include/functions.php

index d07288a910126a0a7de3337ac83026a9f73f92f3..2b7b7c586481ca9bea03d1c87af1e8f61bff5036 100644 (file)
                        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);
 
                        $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) {