This commit is contained in:
JonatanRek 2020-03-13 16:25:09 +01:00
parent 62449d2528
commit ca2cb2dbd2
1 changed files with 3 additions and 1 deletions

View File

@ -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;