Update destinations.php

This commit is contained in:
FusionPBX 2020-06-19 19:00:33 -06:00 committed by GitHub
parent aa9c7c1277
commit b42cbc60b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {