From 05ba2b3ca0340c6a6f0efb83e9be7d21d97af5b4 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 15 Sep 2020 19:12:19 -0600 Subject: [PATCH] Fix PHP warnings --- 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 78687f5ef7..f7a01f42bc 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -263,7 +263,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']) && count($row['result']['data']) > 0 and strlen($row['select_value'][$destination_type]) > 0) { $response .= " \n"; $label2 = $label; foreach ($row['result']['data'] as $data) {