mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 10:56:31 +00:00
Remove redundant database objects
This reduces database connections and improves performance.
This commit is contained in:
@@ -30,7 +30,6 @@ if ($domains_processed == 1) {
|
||||
//update the notifications table
|
||||
//if (is_array($_SESSION['switch']['scripts'])) {
|
||||
// $sql = "select count(*) from v_notifications ";
|
||||
// $database = new database;
|
||||
// $num_rows = $database->select($sql, null, 'column');
|
||||
// if ($num_rows == 0) {
|
||||
// //build insert array
|
||||
@@ -40,7 +39,6 @@ if ($domains_processed == 1) {
|
||||
// $p = new permissions;
|
||||
// $p->add('notification_add', 'temp');
|
||||
// //execute insert
|
||||
// $database = new database;
|
||||
// $database->app_name = 'notifications';
|
||||
// $database->app_uuid = 'e746fbcb-f67f-4e0e-ab64-c414c01fac11';
|
||||
// $database->save($array, false);
|
||||
|
||||
Reference in New Issue
Block a user