mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
API fix
This commit is contained in:
1 parent
62449d2528
commit
ca2cb2dbd2
1 file changed
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user