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:
@@ -31,7 +31,6 @@ if ($domains_processed == 1) {
|
||||
|
||||
//update the software table
|
||||
$sql = "select software_version from v_software ";
|
||||
$database = new database;
|
||||
$software_version = $database->select($sql, null, 'column');
|
||||
if (empty($software_version)) {
|
||||
$array['software'][0]['software_uuid'] = '7de057e7-333b-4ebf-9466-315ae7d44efd';
|
||||
@@ -52,7 +51,6 @@ if ($domains_processed == 1) {
|
||||
$p->add("software_edit", 'temp');
|
||||
|
||||
//save the data
|
||||
$database = new database;
|
||||
$database->app_name = 'software';
|
||||
$database->app_uuid = 'b88c795f-7dea-4fc8-9ab7-edd555242cff';
|
||||
$database->save($array, false);
|
||||
|
||||
Reference in New Issue
Block a user