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:
@@ -38,7 +38,6 @@
|
||||
//add the access control list to the database
|
||||
$sql = "select * from v_modules ";
|
||||
$sql .= "where module_order is null ";
|
||||
$database = new database;
|
||||
$modules = $database->select($sql, null, 'all');
|
||||
if (is_array($modules) && @sizeof($modules) != 0) {
|
||||
foreach ($modules as $index => &$row) {
|
||||
@@ -49,7 +48,6 @@
|
||||
$array['modules'][$index]['module_order'] = $mod['module_order'];
|
||||
}
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
$database = new database;
|
||||
$database->app_name = 'modules';
|
||||
$database->app_uuid = '5eb9cba1-8cb6-5d21-e36a-775475f16b5e';
|
||||
$database->save($array, false);
|
||||
|
||||
Reference in New Issue
Block a user