diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-12-16 11:50:30 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-12-16 11:50:30 +0100 |
commit | b863447c2b33dcf31764b111057acdc5e5658d38 (patch) | |
tree | 8701ff6f81587174419fc0bb20aea2369d185a0c | |
parent | 7403f9f870e51a99a2a8674f6e7a1e91ebd48d42 (diff) | |
parent | 19d7cfd66b9ebf72a7812934b8fabfce9da1c174 (diff) | |
download | volse-hubzilla-b863447c2b33dcf31764b111057acdc5e5658d38.tar.gz volse-hubzilla-b863447c2b33dcf31764b111057acdc5e5658d38.tar.bz2 volse-hubzilla-b863447c2b33dcf31764b111057acdc5e5658d38.zip |
Merge branch '2.0RC' of https://github.com/redmatrix/hubzilla into 2.0RC
-rw-r--r-- | include/network.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/network.php b/include/network.php index fe360c425..451ce12a1 100644 --- a/include/network.php +++ b/include/network.php @@ -59,7 +59,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { if(x($opts,'filep')) { @curl_setopt($ch, CURLOPT_FILE, $opts['filep']); - @curl_setopt($ch, CURLOPT_HEADER, $false); + @curl_setopt($ch, CURLOPT_HEADER, false); } if(x($opts,'upload')) @@ -87,7 +87,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { @curl_setopt($ch, CURLOPT_TIMEOUT, $opts['timeout']); } else { - $curl_time = intval(get_config('system','curl_timeout')); + $curl_time = intval(@get_config('system','curl_timeout')); @curl_setopt($ch, CURLOPT_TIMEOUT, (($curl_time !== false) ? $curl_time : 60)); } @@ -107,7 +107,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { @curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, ((x($opts,'novalidate') && intval($opts['novalidate'])) ? false : true)); - $prx = get_config('system','proxy'); + $prx = @get_config('system','proxy'); if(strlen($prx)) { @curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1); @curl_setopt($ch, CURLOPT_PROXY, $prx); @@ -226,7 +226,7 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) { if(x($opts,'filep')) { @curl_setopt($ch, CURLOPT_FILE, $opts['filep']); - @curl_setopt($ch, CURLOPT_HEADER, $false); + @curl_setopt($ch, CURLOPT_HEADER, false); } if(x($opts,'headers')) { @@ -246,7 +246,7 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) { @curl_setopt($ch, CURLOPT_TIMEOUT, $opts['timeout']); } else { - $curl_time = intval(get_config('system','curl_timeout')); + $curl_time = intval(@get_config('system','curl_timeout')); @curl_setopt($ch, CURLOPT_TIMEOUT, (($curl_time !== false) ? $curl_time : 60)); } |