sqmk / Phue

Philips Hue client for PHP
Other
203 stars 45 forks source link

createGroup returns Undefined offset: 2 #108

Closed jonofe closed 8 years ago

jonofe commented 8 years ago

When calling new \Phue\Command\CreateGroup the error Undefined offset: 2 in line 104 is returned. I checked the file

/Phue/library/Phue/Command/CreateGroup.php

It seems, that the resulting groupID is returned in $r[0] instead of $r[2]. After changing that, it works for me.

sqmk commented 8 years ago

Create a pull request with the change and I'll merge it in.

sqmk commented 8 years ago

Tagged as v1.5.1