mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Remove redundant database objects
This reduces database connections and improves performance.
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
|
||||
//add the music_on_hold list to the database
|
||||
$sql = "select count(*) from v_conference_profiles; ";
|
||||
$database = new database;
|
||||
$num_rows = $database->select($sql, null, 'column');
|
||||
if ($num_rows == 0) {
|
||||
|
||||
@@ -69,7 +68,6 @@
|
||||
$p = new permissions;
|
||||
$p->add('conference_profile_add', 'temp');
|
||||
|
||||
$database = new database;
|
||||
$database->app_name = 'conference_profiles';
|
||||
$database->app_uuid = 'c33e2c2a-847f-44c1-8c0d-310df5d65ba9';
|
||||
$database->save($array, false);
|
||||
@@ -96,7 +94,6 @@
|
||||
$p = new permissions;
|
||||
$p->add('conference_profile_param_add', 'temp');
|
||||
|
||||
$database = new database;
|
||||
$database->app_name = 'conference_profiles';
|
||||
$database->app_uuid = 'c33e2c2a-847f-44c1-8c0d-310df5d65ba9';
|
||||
$database->save($array, false);
|
||||
|
||||
Reference in New Issue
Block a user