From 62ef9cb23643b45edffdbaf22e134939655c9e03 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 24 Jul 2012 18:15:45 +0000 Subject: [PATCH] Straighten out the use of domain_uuid sessions variable. --- includes/lib_switch.php | 4 ++-- secure/fax_to_email.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/lib_switch.php b/includes/lib_switch.php index a7995f20e9..90cdd390e7 100644 --- a/includes/lib_switch.php +++ b/includes/lib_switch.php @@ -2182,7 +2182,7 @@ function save_var_xml() { } function outbound_route_to_bridge ($destination_number) { - global $domain_uuid, $db; + global $db; $destination_number = trim($destination_number); if (is_numeric($destination_number)) { @@ -2195,7 +2195,7 @@ function outbound_route_to_bridge ($destination_number) { } $sql = "select * from v_dialplans "; - $sql .= "where domain_uuid = '".$domain_uuid."' "; + $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' "; $sql .= "and app_uuid = '8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3' "; $sql .= "and dialplan_enabled = 'true' "; $sql .= "order by dialplan_order asc "; diff --git a/secure/fax_to_email.php b/secure/fax_to_email.php index 5351234885..4b376704cc 100644 --- a/secure/fax_to_email.php +++ b/secure/fax_to_email.php @@ -111,13 +111,13 @@ if (defined('STDIN')) { $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as &$row) { - $domain_uuid = $row["domain_uuid"]; + $_SESSION["domain_uuid"] = $row["domain_uuid"]; } unset ($prep_statement); //get the fax details from the database $sql = "select * from v_fax "; - $sql .= "where domain_uuid = '".$domain_uuid."' "; + $sql .= "where domain_uuid = '".$_SESSION["domain_uuid"]."' "; $sql .= "and fax_extension = '$fax_extension' "; $prep_statement = $db->prepare($sql); $prep_statement->execute();