mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 09:45:33 +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
|
// 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;
|
||||||
|
|||||||
Reference in new issue
Block a user