From 44904fe0bff1e552a090d86a35e57e2e7abb8976 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 23 Dec 2017 16:24:00 -0700 Subject: [PATCH] Update destinations.php --- resources/classes/destinations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/classes/destinations.php b/resources/classes/destinations.php index dc866dbe1e..5cc3a58040 100644 --- a/resources/classes/destinations.php +++ b/resources/classes/destinations.php @@ -298,7 +298,7 @@ class destinations { //delete the checked rows if ($action == 'delete') { foreach($destinations as $row) { - if ($row['checked'] == 'true') { + if ($row['action'] == 'delete' or $row['checked'] == 'true') { $sql = "delete from v_destinations "; $sql .= "where destination_uuid = '".$row['destination_uuid']."'; "; $this->db->query($sql);