* 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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user