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 -1
View File
@@ -40,6 +40,9 @@
exit;
}
//initialize the database connection
$database = database::new();
//create the waveform file
if (is_uuid($_GET['id']) || !empty($_GET['data'])) {
@@ -54,7 +57,6 @@
$sql .= "and recording_uuid = :recording_uuid ";
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
$parameters['recording_uuid'] = $_GET['id'];
$database = new database;
$row = $database->select($sql, $parameters, 'row');
if (is_array($row) && @sizeof($row) != 0) {
$recording_filename = $row['recording_filename'];