mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix dialplans always shows as selected for empty entry (#7619)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user