From 3d6c1cbb990d1ed67c38591c533f5524b4b36031 Mon Sep 17 00:00:00 2001 From: fusionate Date: Mon, 31 Jul 2023 23:26:03 +0000 Subject: [PATCH] Destinations - List: Adjust case on Type column value, Center Prefix, mitigate PHP 8.1 warning. --- app/destinations/destinations.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index 34dc1e1b1a..c260dc9529 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -266,7 +266,7 @@ echo th_order_by('domain_name', $text['label-domain'], $order_by, $order, $param, "class='shrink'"); } echo th_order_by('destination_type', $text['label-destination_type'], $order_by, $order, $param, "class='shrink'"); - echo th_order_by('destination_prefix', $text['label-destination_prefix'], $order_by, $order, $param, "class='shrink'"); + echo th_order_by('destination_prefix', $text['label-destination_prefix'], $order_by, $order, $param, "class='shrink center'"); if (permission_exists('destination_trunk_prefix')) { echo th_order_by('destination_trunk_prefix', $text['label-destination_trunk_prefix'], $order_by, $order, $param, "class='shrink'"); } @@ -303,7 +303,7 @@ if (!empty($row['destination_actions'])) { $destination_actions = json_decode($row['destination_actions'], true); if (!empty($destination_actions)) { - foreach($destination_actions as $action) { + foreach ($destination_actions as $action) { $destination_app = $action['destination_app']; $destination_data = $action['destination_data']; } @@ -332,9 +332,9 @@ } echo " ".escape($domain)."\n"; } - echo " ".escape($row['destination_type'])." \n"; + echo " ".escape($text['option-'.$row['destination_type']])." \n"; - echo " ".escape($row['destination_prefix'])." \n"; + echo " ".escape($row['destination_prefix'])." \n"; if (permission_exists('destination_trunk_prefix')) { echo " ".escape($row['destination_trunk_prefix'])." \n"; }