aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2016-02-28 09:10:39 +0100
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2016-02-28 09:10:39 +0100
commite084a85e79af2c56f6e715fcf44a1be815ea5c45 (patch)
tree33fe9af5c7577accf722d6d8342939387cfa22ff /include/network.php
parentc5333b518781068d866805778e2823ef6f9d40ea (diff)
parenta1f046992dd1897366f6ce67cb5a8c0895b8bf2a (diff)
downloadvolse-hubzilla-e084a85e79af2c56f6e715fcf44a1be815ea5c45.tar.gz
volse-hubzilla-e084a85e79af2c56f6e715fcf44a1be815ea5c45.tar.bz2
volse-hubzilla-e084a85e79af2c56f6e715fcf44a1be815ea5c45.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php
index ecaf4e05f..93fd836f8 100644
--- a/include/network.php
+++ b/include/network.php
@@ -40,7 +40,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
$ch = @curl_init($url);
if(($redirects > 8) || (! $ch))
- return false;
+ return $ret;
@curl_setopt($ch, CURLOPT_HEADER, true);
@curl_setopt($ch, CURLINFO_HEADER_OUT, true);
@@ -171,7 +171,7 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) {
$ch = curl_init($url);
if(($redirects > 8) || (! $ch))
- return ret;
+ return $ret;
@curl_setopt($ch, CURLOPT_HEADER, true);
@curl_setopt($ch, CURLINFO_HEADER_OUT, true);