mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Remove redundant database instances (#7535)
This commit is contained in:
@@ -105,9 +105,6 @@
|
||||
$p = permissions::new();
|
||||
$p->add('contact_edit', 'temp');
|
||||
|
||||
$database = new database;
|
||||
$database->app_name = 'contacts';
|
||||
$database->app_uuid = '04481e0e-a478-c559-adad-52bd4174574c';
|
||||
$database->save($array);
|
||||
unset($array);
|
||||
|
||||
@@ -134,9 +131,6 @@
|
||||
$array['contact_times'][0]['time_stop'] = $time_stop;
|
||||
$array['contact_times'][0]['time_description'] = $time_description;
|
||||
|
||||
$database = new database;
|
||||
$database->app_name = 'contacts';
|
||||
$database->app_uuid = '04481e0e-a478-c559-adad-52bd4174574c';
|
||||
$database->save($array);
|
||||
unset($array);
|
||||
}
|
||||
@@ -161,7 +155,6 @@
|
||||
$parameters['contact_uuid'] = $contact_uuid ?? '';
|
||||
$parameters['user_uuid'] = $_SESSION["user"]["user_uuid"];
|
||||
$parameters['contact_time_uuid'] = $contact_time_uuid;
|
||||
$database = new database;
|
||||
$row = $database->select($sql, $parameters, 'row');
|
||||
$time_start = $row["time_start"];
|
||||
$time_stop = $row["time_stop"];
|
||||
|
||||
Reference in New Issue
Block a user