From b42cbc60b3010c0af66818f95d759109b404ea34 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 19 Jun 2020 19:00:33 -0600 Subject: [PATCH] Update destinations.php --- app/destinations/resources/classes/destinations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index a17f22cb64..4b81f8bac2 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -551,7 +551,7 @@ if (!class_exists('destinations')) { * valid destination */ public function valid($destination, $type = 'dialplan') { - $destinations = $this->all($type); + $destinations = $this->all('dialplan'); foreach($destinations as $category => $array) { if (is_array($array)) { foreach ($array as $key => $value) {