From 4075a12a74d641945732c8c8d86047a8136703a7 Mon Sep 17 00:00:00 2001 From: Andrew Querol Date: Tue, 23 Mar 2021 00:06:42 -0500 Subject: [PATCH] Do not use the null coalescing operator to retain pre PHP 7 support. --- app/destinations/resources/classes/destinations.php | 2 +- app/destinations/resources/destinations.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index 435bd29057..efcc87f364 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -503,7 +503,7 @@ if (!class_exists('destinations')) { if ($key == $destination_key) { foreach($value as $k => $row) { $selected = ($row['destination'] == $destination_value) ? "selected='selected'" : ''; - $uuid = $row[$this->singular($key).'_uuid'] ?? $row['uuid']; + $uuid = isset($row[$this->singular($key).'_uuid']) ? $row[$this->singular($key).'_uuid'] : $row['uuid']; $response .= " \n"; } } diff --git a/app/destinations/resources/destinations.php b/app/destinations/resources/destinations.php index bd046637d1..ae026b5e6e 100644 --- a/app/destinations/resources/destinations.php +++ b/app/destinations/resources/destinations.php @@ -51,7 +51,7 @@ $select_label = str_replace('email-icon', '✉', $select_label); //add the select option - $uuid = $row[$singular.'_uuid'] ?? $row['uuid']; + $uuid = isset($row[$singular.'_uuid']) ? $row[$singular.'_uuid'] : $row['uuid']; echo " \n"; } }