Browse Source

Only set switch default settings for variables that are enabled.

markjcrane 9 years ago
parent
commit
0434bdcd35
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/install/resources/classes/install_fusionpbx.php

+ 1 - 0
core/install/resources/classes/install_fusionpbx.php

@@ -902,6 +902,7 @@ include "root.php";
 			//get the switch default settings
 				$sql = "select * from v_default_settings ";
 				$sql .= "where default_setting_category = 'switch' ";
+				$sql .= "and default_setting_enabled = 'true' ";
 				$prep_statement = $this->dbh->prepare($sql);
 				$prep_statement->execute();
 				$default_settings = $prep_statement->fetchAll(PDO::FETCH_NAMED);