Additional fix using sess array as object on mqtt connector #730
This commit is contained in:
parent
82578fb346
commit
ddde274fdc
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class MQTTClient
|
|||
$phone_num = $sess['data']->getPhoneNumber();
|
||||
|
||||
// use appropriate prefix so we have different channel names for new api
|
||||
$prefix = $sess->legacy ? self::PREFIX : self::PREFIX_APIv2;
|
||||
$prefix = $sess['legacy'] ? self::PREFIX : self::PREFIX_APIv2;
|
||||
$channel = $prefix . $phone_num;
|
||||
|
||||
error_log("SENDING TO CHANNEL: " . $channel);
|
||||
|
|
|
|||
Loading…
Reference in a new issue