From 10a4ceae6528ac6b5ef33274649ba5ef40cd70d3 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Wed, 17 May 2023 16:03:36 -0600 Subject: [PATCH] Default destination type to inbound. Use is_array where it is required --- app/destinations/destinations.php | 2 +- app/destinations/resources/classes/destinations.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index 67b324b23b..d416649d4b 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -100,7 +100,7 @@ } //set the type - $destination_type = ''; + $destination_type = 'inbound'; if (!empty($_REQUEST['type'])) { switch ($_REQUEST['type']) { case 'inbound': $destination_type = 'inbound'; break; diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index b1a962d848..f9b951b88e 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -433,7 +433,7 @@ if (!class_exists('destinations')) { $destination_id = str_replace("]", "", $destination_name); $destination_id = str_replace("[", "_", $destination_id); //$destination_id = preg_replace('/[^a-zA-Z_,.]/', '', $destination_name); - + ?>