mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Scene creadtion devices cant be empty
This commit is contained in:
1 parent
2f838a529c
commit
8d02d7ff9e
2 files changed
+4
-3
No files matched your search
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (isset($_POST) && !empty($_POST)){
|
||||
|
||||
SceneManager::create($_POST['sceneIcon'], $_POST['sceneName'], json_encode($_POST['devices']));
|
||||
if (sset($_POST['devices']) && $_POST['devices'] != '') {
|
||||
SceneManager::create($_POST['sceneIcon'], $_POST['sceneName'], json_encode($_POST['devices']));
|
||||
}
|
||||
|
||||
//Debug
|
||||
if (DEBUGMOD == 1) {
|
||||
|
||||
Reference in new issue
Block a user