Fix destination->valid method for ivr (#5312)

* Update destinations.php

* Update ivr_menu_edit.php
This commit is contained in:
agree
2020-06-24 18:42:03 -04:00
committed by GitHub
parent 19df9b4aa8
commit e5d3295975
2 changed files with 2 additions and 2 deletions

View File

@@ -551,7 +551,7 @@ if (!class_exists('destinations')) {
* valid destination
*/
public function valid($destination, $type = 'dialplan') {
$destinations = $this->all('dialplan');
$destinations = $this->all($type);
foreach($destinations as $category => $array) {
if (is_array($array)) {
foreach ($array as $key => $value) {