Update the database connection

This commit is contained in:
FusionPBX
2024-10-04 00:16:40 -06:00
committed by GitHub
parent 1bd7dc1687
commit 2c0c8e5a93
3 changed files with 9 additions and 11 deletions
+3 -2
View File
@@ -42,6 +42,9 @@
$language = new text;
$text = $language->get();
//initialize the database connection
$database = database::new();
//set defaults
$recording_name = '';
$recording_message = '';
@@ -247,7 +250,6 @@
$array['recordings'][0]['recording_description'] = $recording_description;
//execute update
$database = new database;
$database->app_name = 'recordings';
$database->app_uuid = '83913217-c7a2-9e90-925d-a866eb40b60e';
$database->save($array);
@@ -273,7 +275,6 @@
$sql .= "and recording_uuid = :recording_uuid ";
$parameters['domain_uuid'] = $domain_uuid;
$parameters['recording_uuid'] = $recording_uuid;
$database = new database;
$row = $database->select($sql, $parameters, 'row');
if (is_array($row) && @sizeof($row) != 0) {
$recording_filename = $row["recording_filename"];