This commit is contained in:
JonatanRek 2020-03-13 16:25:09 +01:00
parent 62449d2528
commit ca2cb2dbd2

View File

@ -172,7 +172,9 @@ if ($settings != null || $settings != ""){
// Issuing command
if ($command == "null"){
$deviceCommand = DeviceManager::getDeviceByToken($token)["command"];
$device = DeviceManager::getDeviceByToken($token);
$deviceId = $device['device_id'];
$deviceCommand = $device["command"];
if ($deviceCommand != '' || $deviceCommand != null)
{
$command = $deviceCommand;