Update destinations.php
This commit is contained in:
parent
aa9c7c1277
commit
b42cbc60b3
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue