Merge
Merge remote branch 'github-ivan1986/master'
This commit is contained in:
commit
07a9b7ea23
@ -465,8 +465,7 @@ class XMPPHP_XMLStream {
|
|||||||
}
|
}
|
||||||
$part = fread($this->socket, 4096);
|
$part = fread($this->socket, 4096);
|
||||||
stream_set_blocking($this->socket, 1);
|
stream_set_blocking($this->socket, 1);
|
||||||
|
if ($part === false) {
|
||||||
if (!$part) {
|
|
||||||
if($this->reconnect) {
|
if($this->reconnect) {
|
||||||
$this->doReconnect();
|
$this->doReconnect();
|
||||||
} else {
|
} else {
|
||||||
|
@ -214,7 +214,7 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream {
|
|||||||
$out = "<presence";
|
$out = "<presence";
|
||||||
if($to) $out .= " to=\"$to\"";
|
if($to) $out .= " to=\"$to\"";
|
||||||
if($type) $out .= " type='$type'";
|
if($type) $out .= " type='$type'";
|
||||||
if($show == 'available' and !$status) {
|
if($show == 'available' and !$status and $priority !== null) {
|
||||||
$out .= "/>";
|
$out .= "/>";
|
||||||
} else {
|
} else {
|
||||||
$out .= ">";
|
$out .= ">";
|
||||||
|
Loading…
Reference in New Issue
Block a user