Update call_broadcast_edit.php

This commit is contained in:
FusionPBX 2019-09-06 18:20:01 -06:00 committed by GitHub
parent 0558f7efc1
commit 10f05554fd
1 changed files with 11 additions and 11 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2018 Portions created by the Initial Developer are Copyright (C) 2008-2019
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
@ -183,7 +183,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
message::add($text['confirm-update']); message::add($text['confirm-update']);
//set return url on error //set return url on error
$error_return_url = "call_broadcast_edit.php?id=".$_GET['id']; $error_return_url = "call_broadcast_edit.php?id=".urlencode($_GET['id']);
} }
//execute //execute
@ -231,7 +231,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
} }
//pre-populate the form //pre-populate the form
if (count($_GET)>0 && $_POST["persistformvar"] != "true") { if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {
$call_broadcast_uuid = $_GET["id"]; $call_broadcast_uuid = $_GET["id"];
$sql = "select * from v_call_broadcasts "; $sql = "select * from v_call_broadcasts ";
$sql .= "where domain_uuid = :domain_uuid "; $sql .= "where domain_uuid = :domain_uuid ";