mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update destinations.php
This commit is contained in:
@@ -551,7 +551,7 @@ if (!class_exists('destinations')) {
|
|||||||
* valid destination
|
* valid destination
|
||||||
*/
|
*/
|
||||||
public function valid($destination, $type = 'dialplan') {
|
public function valid($destination, $type = 'dialplan') {
|
||||||
$destinations = $this->all($type);
|
$destinations = $this->all('dialplan');
|
||||||
foreach($destinations as $category => $array) {
|
foreach($destinations as $category => $array) {
|
||||||
if (is_array($array)) {
|
if (is_array($array)) {
|
||||||
foreach ($array as $key => $value) {
|
foreach ($array as $key => $value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user