summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-23 18:45:16 +0400
committerAndrew Dolgov <[email protected]>2013-02-23 18:45:16 +0400
commit48b657fce133745856b5b23943f431e63294f0de (patch)
tree066d95ef3d4e1a960eca522637b55d797088dc17 /include
parent5de51df7f89b425448f2cbda72d6109bdbdd3ff6 (diff)
fetch_file_contents: fix typos
Diffstat (limited to 'include')
-rw-r--r--include/functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/functions.php b/include/functions.php
index d07288a91..2b7b7c586 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) {