Update domain setting handling in fax to email.

This commit is contained in:
markjcrane 2015-09-26 11:39:16 -06:00
parent e2eccde92f
commit b5f581fbfd
1 changed files with 8 additions and 1 deletions

View File

@ -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);