diff options
author | Michael Vogel <icarus@dabo.de> | 2012-04-21 19:26:24 +0200 |
---|---|---|
committer | Michael Vogel <icarus@dabo.de> | 2012-04-21 19:26:24 +0200 |
commit | 71e2dbf3522dcf076458805ee65dc976fb35a6f3 (patch) | |
tree | 5c11d463eff15245458f5033d7d425671df8f1d0 /include/network.php | |
parent | a147d6113c081694d4209002fa5e57106d4c6f41 (diff) | |
parent | bdbe068b95e8c302179530dff7583997ff35f246 (diff) | |
download | volse-hubzilla-71e2dbf3522dcf076458805ee65dc976fb35a6f3.tar.gz volse-hubzilla-71e2dbf3522dcf076458805ee65dc976fb35a6f3.tar.bz2 volse-hubzilla-71e2dbf3522dcf076458805ee65dc976fb35a6f3.zip |
Merge commit 'upstream/master'
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php index 8c678a443..4bec4a172 100644 --- a/include/network.php +++ b/include/network.php @@ -172,7 +172,7 @@ function post_url($url,$params, $headers = null, &$redirects = 0, $timeout = 0) $url_parsed = @parse_url($newurl); if (isset($url_parsed)) { $redirects++; - return fetch_url($newurl,$binary,$redirects,$timeout); + return fetch_url($newurl,false,$redirects,$timeout); } } $a->set_curl_code($http_code); @@ -206,6 +206,7 @@ function xml_status($st, $message = '') { if(! function_exists('http_status_exit')) { function http_status_exit($val) { + $err = ''; if($val >= 400) $err = 'Error'; if($val >= 200 && $val < 300) @@ -452,7 +453,7 @@ function lrdd($uri, $debug = false) { logger('lrdd: parse error: ' . $e); } - if($dom) { + if(isset($dom) && $dom) { $items = $dom->getElementsByTagName('link'); foreach($items as $item) { $x = $item->getAttribute('rel'); |