WHen saving v4l settings redirect back to watch instead of console.

This commit is contained in:
Isaac Connor 2021-10-16 18:30:55 -04:00 committed by Isaac Connor
parent 1b3e0eda13
commit d5f9eb11c6
1 changed files with 5 additions and 3 deletions

View File

@ -45,5 +45,7 @@ if ( $action == 'settings' ) {
dbQuery(
'UPDATE Monitors SET Brightness = ?, Contrast = ?, Hue = ?, Colour = ? WHERE Id = ?',
array($brightness, $contrast, $hue, $colour, $mid));
global $redirect;
$redirect = '?view=watch&mid='.$mid;
}
?>