Update stream_edit.php

This commit is contained in:
FusionPBX 2019-09-17 23:58:07 -06:00 committed by GitHub
parent 7ef9daf086
commit 0ab4c6f09a
1 changed files with 8 additions and 4 deletions

View File

@ -88,17 +88,21 @@
//set the domain_uuid
if (!permission_exists('stream_all')) {
$_POST["domain_uuid"] = $_SESSION["domain_uuid"];
$domain_uuid = $_SESSION["domain_uuid"];
}
//add the stream_uuid
if (strlen($_POST["stream_uuid"]) == 0) {
$stream_uuid = uuid();
$_POST["stream_uuid"] = $stream_uuid;
}
//prepare the array
$array['streams'][0] = $_POST;
$array['streams'][0]['stream_uuid'] = $stream_uuid;
$array['streams'][0]['domain_uuid'] = $domain_uuid;
$array['streams'][0]['stream_name'] = $stream_name;
$array['streams'][0]['stream_location'] = $stream_location;
$array['streams'][0]['stream_enabled'] = $stream_enabled;
$array['streams'][0]['stream_description'] = $stream_description;
//save to the data
$database = new database;
@ -249,4 +253,4 @@
//include the footer
require_once "resources/footer.php";
?>
?>