From e591ab9ce245c81489745abb4c2a16740144b815 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 28 Sep 2020 11:17:17 -0600 Subject: [PATCH] Change count to is_array to prevent a warning on PHP 7.3. --- app/destinations/resources/classes/destinations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index ebbc090c97..c6e449facf 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -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];