mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Remove database app_name and app_uuid (#7562)
- Remove database app_name, app_uuid - This is handled automatically by the database class - Remove redundant database::new()
This commit is contained in:
@@ -144,8 +144,6 @@ if (count($_POST)>0 && empty($_POST["persistformvar"])) {
|
||||
//add new uuid
|
||||
$array['databases'][0]['database_uuid'] = uuid();
|
||||
|
||||
$database->app_name = 'databases';
|
||||
$database->app_uuid = '8d229b6d-1383-fcec-74c6-4ce1682479e2';
|
||||
$database->save($array);
|
||||
unset($array);
|
||||
|
||||
@@ -162,8 +160,7 @@ if (count($_POST)>0 && empty($_POST["persistformvar"])) {
|
||||
//add uuid to update
|
||||
$array['databases'][0]['database_uuid'] = $database_uuid;
|
||||
|
||||
$database->app_name = 'databases';
|
||||
$database->app_uuid = '8d229b6d-1383-fcec-74c6-4ce1682479e2';
|
||||
//save to the database
|
||||
$database->save($array);
|
||||
unset($array);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user