Update bridge_edit.php
This commit is contained in:
@@ -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) 2018
|
Portions created by the Initial Developer are Copyright (C) 2018 - 2019
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -127,13 +127,15 @@
|
|||||||
//pre-populate the form
|
//pre-populate the form
|
||||||
if (is_array($_GET) && $_POST["persistformvar"] != "true") {
|
if (is_array($_GET) && $_POST["persistformvar"] != "true") {
|
||||||
$bridge_uuid = check_str($_GET["id"]);
|
$bridge_uuid = check_str($_GET["id"]);
|
||||||
|
$parameters['bridge_uuid'] = $bridge_uuid;
|
||||||
$sql = "select * from v_bridges ";
|
$sql = "select * from v_bridges ";
|
||||||
$sql .= "where bridge_uuid = '$bridge_uuid' ";
|
$sql .= "where bridge_uuid = :bridge_uuid ";
|
||||||
//$sql .= "and domain_uuid = '$domain_uuid' ";
|
//$sql .= "and domain_uuid = :domain_uuid ";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$database = new database;
|
||||||
$prep_statement->execute();
|
//$database = $database->app_name = 'bridges';
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $database->execute($sql, $parameters);
|
||||||
foreach ($result as &$row) {
|
//$message = $database->message;
|
||||||
|
foreach ($result as $row) {
|
||||||
$bridge_name = $row["bridge_name"];
|
$bridge_name = $row["bridge_name"];
|
||||||
$bridge_destination = $row["bridge_destination"];
|
$bridge_destination = $row["bridge_destination"];
|
||||||
$bridge_enabled = $row["bridge_enabled"];
|
$bridge_enabled = $row["bridge_enabled"];
|
||||||
|
|||||||
Reference in New Issue
Block a user