diff options
author | friendica <info@friendica.com> | 2012-04-17 06:50:09 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-04-17 06:50:09 -0700 |
commit | 8269d6aa19eb71063ff578b43b237ffd4fea93b1 (patch) | |
tree | 58ff40aa9414f8484a3f1091b616e81db720822e /include/network.php | |
parent | e6330e3b966401f83d54bdd08c9ed9ab294643e0 (diff) | |
parent | 720c8324c7572ebf51e4083430e060900cb30750 (diff) | |
download | volse-hubzilla-8269d6aa19eb71063ff578b43b237ffd4fea93b1.tar.gz volse-hubzilla-8269d6aa19eb71063ff578b43b237ffd4fea93b1.tar.bz2 volse-hubzilla-8269d6aa19eb71063ff578b43b237ffd4fea93b1.zip |
Merge pull request #240 from CatoTH/master
Some bugfixes / Notices
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'); |