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:
FusionPBX 2016-05-10 12:56:33 -06:00
parent 8220f74cc5
commit 0cca642562
1 changed files with 183 additions and 181 deletions

View File

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