mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 18:36:31 +00:00
Remove redundant database objects
This reduces database connections and improves performance.
This commit is contained in:
@@ -4,7 +4,6 @@ if ($domains_processed == 1) {
|
||||
|
||||
//get all of the sofia global default settings
|
||||
$sql = "select * from v_sofia_global_settings \n";
|
||||
$database = new database;
|
||||
$sofia_global_settings = $database->select($sql, null, 'all');
|
||||
|
||||
//build array
|
||||
@@ -74,7 +73,6 @@ if ($domains_processed == 1) {
|
||||
$p->add('sofia_global_setting_add', 'temp');
|
||||
|
||||
//execute insert
|
||||
$database = new database;
|
||||
$database->app_name = 'sofia_global_settings';
|
||||
$database->app_uuid = '240c25a3-a2cf-44ea-a300-0626eca5b945';
|
||||
$database->save($array, false);
|
||||
|
||||
Reference in New Issue
Block a user