Re-use the Database connection

This commit is contained in:
FusionPBX
2024-08-29 03:35:38 -06:00
committed by GitHub
parent 9347d682bf
commit e0ed81a5ba
22 changed files with 87 additions and 88 deletions
+3 -1
View File
@@ -43,6 +43,9 @@
return;
}
//connect to the database
$database = new database;
//get the http values and set them as variables
$domain_uuid = $_POST["domain_uuid"];
$group_uuid = $_POST["group_uuid"];
@@ -68,7 +71,6 @@
$p = new permissions;
$p->add('user_group_add', 'temp');
$database = new database;
$database->app_name = 'groups';
$database->app_uuid = '2caf27b0-540a-43d5-bb9b-c9871a1e4f84';
$database->save($array);