Update destinations.php

Fix a PHP warning.
This commit is contained in:
FusionPBX 2020-11-11 09:34:42 -07:00 committed by GitHub
parent e5cf6bde51
commit 4d183c1ffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -776,7 +776,7 @@ if (!class_exists('destinations')) {
$text2 = $language2->get($_SESSION['domain']['language']['code'], 'app/'.$name);
}
if (count($row['result']['data']) > 0 and strlen($row['select_value'][$destination_type]) > 0) {
if (is_array($row['result']['data']) && strlen($row['select_value'][$destination_type]) > 0) {
$label2 = $label;
foreach ($row['result']['data'] as $data) {
$select_value = $row['select_value'][$destination_type];