From f7f20c5917a8e381118cc13fade0dbc3da2423ee Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 27 Feb 2016 16:27:37 -0800 Subject: z_fetch_url and z_post_url returning false --- include/network.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/network.php') 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); -- cgit v1.2.3