Sleep time in edit hot fix

This commit is contained in:
JonatanRek 2019-09-09 21:01:45 +02:00
parent b1ad8b227b
commit 6248b7addb

View File

@ -4,7 +4,10 @@ if (isset($_POST) && !empty($_POST)){
$deviceId = $_POST['deviceId'];
$deviceName = $_POST['deviceName'];
$deviceIcon = $_POST['deviceIcon'];
$sleepTime = $_POST['sleepTime'];
$sleepTime = 0;
if (isset($_POST['sleepTime'])) {
$sleepTime = $_POST['sleepTime'];
}
//TODO: if device isnt on off
$permissionsInJson = json_encode([
(int) $_POST['permissionOwner'],