Permalink
Browse files

fix: cannot set priority to 0 if status message is omitted or $show i…

…s set to "available"
  • Loading branch information...
1 parent a248b91 commit a1c70c49854cf916eaa925345c88fcc4a06f9cff @Superwayne Superwayne committed with Apr 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 XMPPHP/XMPP.php
View
@@ -196,7 +196,7 @@ public function presence($status = null, $show = 'available', $to = null, $type=
$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 .= ">";

0 comments on commit a1c70c4

Please sign in to comment.