diff --git a/XMPPHP/XMPP.php b/XMPPHP/XMPP.php index ffd9340..97793bc 100644 --- a/XMPPHP/XMPP.php +++ b/XMPPHP/XMPP.php @@ -341,6 +341,8 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { * Roster iq handler * Gets all packets matching XPath "iq/{jabber:iq:roster}query' * + * Implements RFC3921, 7.4. "Adding a Roster Item" + * * @param string $xml */ protected function roster_iq_handler($xml) { @@ -368,7 +370,7 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { } } if ($xml->attrs['type'] == 'set') { - $this->send("attrs['id']}\" to=\"{$xml->attrs['from']}\" />"); + $this->send("attrs['id']}\" to=\"{$xml->attrs['from']}\" />"); } }