Scenes/Automation function Fixs
This commit is contained in:
		@@ -1,8 +1,10 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
if (isset($_POST) && !empty($_POST)){
 | 
			
		||||
	if (sset($_POST['devices']) && $_POST['devices'] != '') {
 | 
			
		||||
	if (isset($_POST['submitFinal']) && $_POST['submitFinal'] != "") {
 | 
			
		||||
		SceneManager::create($_POST['sceneIcon'], $_POST['sceneName'], json_encode($_POST['devices']));
 | 
			
		||||
		header('Location: ' . BASEDIR . strtolower(basename(__FILE__, '.php')));
 | 
			
		||||
		die();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	//Debug
 | 
			
		||||
@@ -13,7 +15,4 @@ if (isset($_POST) && !empty($_POST)){
 | 
			
		||||
		echo '<a href="/' . BASEDIR . strtolower(basename(__FILE__, '.php')).'">CONTINUE</a>';
 | 
			
		||||
		die();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	header('Location: ' . BASEDIR . strtolower(basename(__FILE__, '.php')));
 | 
			
		||||
	die();
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user