Update call_recording_delete.php

This commit is contained in:
FusionPBX
2017-09-14 14:44:44 -05:00
committed by GitHub
parent 7521fd4378
commit 6f218da533
+3 -14
View File
@@ -42,20 +42,9 @@
$language = new text; $language = new text;
$text = $language->get(); $text = $language->get();
//get the id //delete the recording
if (count($_GET)>0) { $obj = new call_recordings;
$id = check_str($_GET["id"]); $obj->delete($_GET["id"]);
}
//delete the data
if (strlen($id)>0) {
$sql = "delete from v_call_recordings ";
$sql .= "where call_recording_uuid = '$id' ";
$sql .= "and domain_uuid = '$domain_uuid' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
unset($sql);
}
//delete message //delete message
messages::add($text['message-delete']); messages::add($text['message-delete']);