fix: $priority is not set if $show is "available" or $status is omitted

This commit is contained in:
Superwayne 2010-04-14 19:35:05 +02:00
parent 7f28fd2a49
commit 8cf43499f4

View File

@ -196,7 +196,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) {
$out .= "/>"; $out .= "/>";
} else { } else {
$out .= ">"; $out .= ">";