Fix dialplans always shows as selected for empty entry (#7619)

This commit is contained in:
frytimo
2025-11-16 00:29:26 -04:00
committed by GitHub
parent 723b9f19f4
commit b151f3c4ce

View File

@@ -514,10 +514,10 @@
//get the destination label
foreach($destinations as $key => $value) {
foreach($value as $k => $row) {
if ($destination_value == $row['destination']) {
if (!empty($row['destination']) && $destination_value == $row['destination']) {
$destination_key = $key;
$destination_label = $row['label'];
break;
break 2;
}
}
}