yangdajun / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

Check if index exists #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a connection
2. Connect
3. Call presence

What is the expected output? What do you see instead?
If everything was ok i expect no notice buy instead i get:
Notice: Undefined index: type in lib/XMPPHP/XMPP.php on line 216
Notice: Undefined index: type in lib/XMPPHP/XMPP.php on line 219

What version of the product are you using? On what operating system?
0.1beta-r50

Please provide any additional information below.
How to fix:
Change line 216 to:
if(array_key_exists('type', $xml->attrs) && $xml->attrs['type'] ==
'subscribe') {
and line 219 to:
} elseif(array_key_exists('type', $xml->attrs) && $xml->attrs['type'] ==
'subscribed') {

Original issue reported on code.google.com by gastonfo...@gmail.com on 20 Aug 2008 at 11:52

GoogleCodeExporter commented 8 years ago
Fixed in SVN

Original comment by nathanfr...@gmail.com on 26 Nov 2008 at 9:55