From 0ea162ae8c27f168b2ed5cfb9b90c0e3dc8affd7 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sat, 26 Sep 2015 11:39:16 -0600 Subject: [PATCH] Update domain setting handling in fax to email. --- secure/fax_to_email.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/secure/fax_to_email.php b/secure/fax_to_email.php index 415428e10d..6972b225b9 100644 --- a/secure/fax_to_email.php +++ b/secure/fax_to_email.php @@ -132,7 +132,14 @@ if (defined('STDIN')) { $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as &$row) { - $_SESSION["domain_uuid"] = $row["domain_uuid"]; + //set the domain variables + $domain_uuid = $row["domain_uuid"]; + $_SESSION["domain_uuid"] = $row["domain_uuid"]; + $_SESSION["domain_name"] = $domain_name; + //set the setting arrays + $domain = new domains(); + $domain->db = $db; + $domain->set(); } unset ($prep_statement);