diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index 60ba3b3084..2694665e47 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -1239,7 +1239,7 @@ if (!class_exists('destinations')) { } $sql .= " and direction = 'inbound' \n"; $sql .= " and caller_destination is not null \n"; - $sql .= " leg = 'a' \n"; + $sql .= " and leg = 'a' \n"; $sql .= $sql_date_range ?? ''; $sql .= ") as c \n";