fix: cannot set priority to 0 if status message is omitted or $show is set to "available"

This commit is contained in:
Superwayne 2010-04-14 21:05:11 +02:00
parent 8cf43499f4
commit 94d3a03794
1 changed files with 1 additions and 1 deletions

View File

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