Merge remote branch 'github-ivan1986/master'
This commit is contained in:
Christian Weiske
2010-05-30 21:01:17 +02:00
2 changed files with 2 additions and 3 deletions

View File

@@ -214,7 +214,7 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream {
$out = "<presence";
if($to) $out .= " to=\"$to\"";
if($type) $out .= " type='$type'";
if($show == 'available' and !$status) {
if($show == 'available' and !$status and $priority !== null) {
$out .= "/>";
} else {
$out .= ">";