Change count to is_array to prevent a warning on PHP 7.3.

This commit is contained in:
FusionPBX
2020-09-28 11:17:17 -06:00
committed by GitHub
parent 9b012a4405
commit e591ab9ce2

View File

@@ -475,7 +475,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];