summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-09-28 16:38:14 +0200
committerAdrian Lang <lang@cosmocode.de>2010-09-28 16:42:43 +0200
commitde3eb1d7f990c4cc17722ce3bdff7b9568ab8b9c (patch)
tree743400a9afec72602b4ec99a21ff42ed7a402287 /inc/HTTPClient.php
parent07d7dfcf87238d920900ca468d9399d80d8b7247 (diff)
downloadrpg-de3eb1d7f990c4cc17722ce3bdff7b9568ab8b9c.tar.gz
rpg-de3eb1d7f990c4cc17722ce3bdff7b9568ab8b9c.tar.bz2
Small fixes / cleanup
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r--inc/HTTPClient.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index eea01f9d5..4e64668d5 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -276,7 +276,7 @@ class HTTPClient {
// open socket
$socket = @fsockopen($server,$port,$errno, $errstr, $this->timeout);
if (!$socket){
- $resp->status = '-100';
+ $this->status = -100;
$this->error = "Could not connect to $server:$port\n$errstr ($errno)";
return false;
}
@@ -560,6 +560,7 @@ class HTTPClient {
* @author Andreas Gohr <andi@splitbrain.org>
*/
function _postEncode($data){
+ $url = '';
foreach($data as $key => $val){
if($url) $url .= '&';
$url .= urlencode($key).'='.urlencode($val);