diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php
index 5a118f47d..de8a2418f 100644
--- a/app/destinations/resources/classes/destinations.php
+++ b/app/destinations/resources/classes/destinations.php
@@ -400,17 +400,20 @@
$response .= " \n";
foreach ($this->destinations as $row) {
+ //set variables to simplify the code
$name = $row['name'];
$label = $row['label'];
- $destination = $row['field']['destination'] ?? '';
//add multi-lingual support
if (file_exists(dirname(__DIR__, 4)."/app/".$name."/app_languages.php")) {
$text2 = $language2->get($this->language, 'app/'.$name);
}
+ //set the group label
+ $group_label = ($text2['label-'.$name] ?? $text2['title-'.$name]);
+
if (!empty($row['result']['data']) && !empty($row['select_value'][$destination_type])) {
- $response .= "