This commit is contained in:
jonatanrek committed 2020-03-13 16:25:09 +01:00
1 parent 62449d2528
commit ca2cb2dbd2
1 file changed
+3 -1
+3 -1
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;