API fix
This commit is contained in:
parent
62449d2528
commit
ca2cb2dbd2
4
api.php
4
api.php
@ -172,7 +172,9 @@ if ($settings != null || $settings != ""){
|
|||||||
|
|
||||||
// Issuing command
|
// Issuing command
|
||||||
if ($command == "null"){
|
if ($command == "null"){
|
||||||
$deviceCommand = DeviceManager::getDeviceByToken($token)["command"];
|
$device = DeviceManager::getDeviceByToken($token);
|
||||||
|
$deviceId = $device['device_id'];
|
||||||
|
$deviceCommand = $device["command"];
|
||||||
if ($deviceCommand != '' || $deviceCommand != null)
|
if ($deviceCommand != '' || $deviceCommand != null)
|
||||||
{
|
{
|
||||||
$command = $deviceCommand;
|
$command = $deviceCommand;
|
||||||
|
Loading…
Reference in New Issue
Block a user