From 8eecd432259d61e37775e818bb339e102fcc9d31 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 14 Sep 2017 15:37:35 -0500 Subject: [PATCH] Update call_recordings.php --- app/call_recordings/call_recordings.php | 26 +++---------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/app/call_recordings/call_recordings.php b/app/call_recordings/call_recordings.php index 475cb11e47..acf529e92e 100644 --- a/app/call_recordings/call_recordings.php +++ b/app/call_recordings/call_recordings.php @@ -62,29 +62,9 @@ if (is_array($_POST["call_recordings"])) { //set the array $call_recordings = $_POST["call_recordings"]; - //debug info - //echo "
\n";
-				//print_r($call_recordings);
-				//echo "
\n"; - //get the action - foreach($call_recordings as $row) { - if ($row['action'] == 'delete') { - $action = 'delete'; - break; - } - } - //delete the checked rows - if ($action == 'delete') { - foreach($call_recordings as $row) { - if ($row['checked'] == 'true') { - $sql = "delete from v_call_recordings "; - $sql .= "where call_recording_uuid = '".$row['call_recording_uuid']."'; "; - //echo $sql."\n"; - $db->query($sql); - unset($sql); - } - } - } + //download + $obj = new call_recordings; + $obj->delete($call_recordings); //delete message messages::add($text['message-delete']); }