From 044b91ec6c1cfba45ade149339f4fb381187fcb8 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 20 Sep 2023 19:13:33 +0000 Subject: [PATCH] Destination - Edit: Mitigate PHP 8.1 warnings. --- app/destinations/resources/classes/destinations.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index b651d1abc2..d6e8e18d2c 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -174,6 +174,9 @@ if (!class_exists('destinations')) { $database = new database; $this->domain_name = $database->select($sql, $parameters, 'column'); + //initialize variable + $response = ''; + //create a single destination select list if (!empty($_SESSION['destinations']['select_mode']['text']) && $_SESSION['destinations']['select_mode']['text'] == 'default') { //get the destinations @@ -290,7 +293,7 @@ if (!class_exists('destinations')) { //add additional if (if_group("superadmin")) { - $response = "