Update app_defaults.php
Move the if ($domains_processed == 1) { so none of the code is processed more than one time.
This commit is contained in:
parent
8220f74cc5
commit
0cca642562
|
|
@ -24,6 +24,9 @@
|
|||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
if ($domains_processed == 1) {
|
||||
|
||||
//create a json string
|
||||
$vars = <<<EOD
|
||||
[
|
||||
{"var_name":"domain","var_value":"\$\${local_ip_v4}","var_cat":"Domain","var_enabled":"true","var_description":"U2V0cyB0aGUgZGVmYXVsdCBkb21haW4u"},
|
||||
|
|
@ -290,7 +293,6 @@ EOD;
|
|||
}
|
||||
|
||||
//adjust the variables required variables
|
||||
if ($domains_processed == 1) {
|
||||
//set variables that depend on the number of domains
|
||||
if (count($_SESSION['domains']) > 1) {
|
||||
//disable the domain and domain_uuid for systems with multiple domains
|
||||
|
|
|
|||
Loading…
Reference in New Issue