BugFix-bad ref to $db in switch_recordings (#1636)

This commit is contained in:
Mafoo
2016-06-08 20:43:10 +01:00
committed by FusionPBX
parent d0882476a3
commit c2850c7b58

View File

@@ -51,7 +51,7 @@ include "root.php";
public function list_recordings() {
$sql = "select recording_uuid, recording_filename, recording_base64 from v_recordings ";
$sql .= "where domain_uuid = '".$this->domain_uuid."' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement = $this->db->prepare(check_sql($sql));
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach ($result as &$row) {