mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Only set switch default settings for variables that are enabled.
This commit is contained in:
@@ -902,6 +902,7 @@ include "root.php";
|
|||||||
//get the switch default settings
|
//get the switch default settings
|
||||||
$sql = "select * from v_default_settings ";
|
$sql = "select * from v_default_settings ";
|
||||||
$sql .= "where default_setting_category = 'switch' ";
|
$sql .= "where default_setting_category = 'switch' ";
|
||||||
|
$sql .= "and default_setting_enabled = 'true' ";
|
||||||
$prep_statement = $this->dbh->prepare($sql);
|
$prep_statement = $this->dbh->prepare($sql);
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$default_settings = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$default_settings = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
|
|||||||
Reference in New Issue
Block a user