* encryption now optional

* fixed presence type bugs
* fixed more undesirable notice/warnings


git-svn-id: svn://netflint.net/xmpphp@21 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
fritzy
2008-04-16 22:46:38 +00:00
parent 2183aed8a5
commit a85c4ae2f5
2 changed files with 12 additions and 8 deletions

View File

@@ -184,7 +184,11 @@ class XMLStream {
xml_parse($this->parser, $buff, False);
}
}
$payload = $this->until_payload[$event_key];
if(array_key_exists($event_key, $this->until_payload)) {
$payload = $this->until_payload[$event_key];
} else {
$payload = array();
}
unset($this->until_payload[$event_key]);
return $payload;
}
@@ -317,7 +321,7 @@ class XMLStream {
function send($msg) {
#socket_write($this->socket, $msg);
$this->log->log("SENT: $msg", LOGGING_VERBOSE);
fwrite($this->socket, $msg);
@fwrite($this->socket, $msg);
}
function reset() {