diff --git a/app/controllers/deviceController.php b/app/controllers/deviceController.php index bb000b2..035b2ab 100644 --- a/app/controllers/deviceController.php +++ b/app/controllers/deviceController.php @@ -18,4 +18,6 @@ if (!empty ($_POST)){ $deviceManager = new DeviceManager (); $deviceManager->edit ($_POST['deviceId'], array ('command' => $_POST['deviceCommand'])); } + header('Location: ./'); + die(); }