Skip to content

Commit

Permalink
Update device.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jul 18, 2024
1 parent 2d7ceeb commit 8ec1ce0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions desktop/modal/device.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@
}
if ($binding['target']['type'] == 'group') {
$device = eqLogic::byLogicalId('group_' . z2m::convert_to_addr($binding['target']['id']), 'z2m');
$to = $device->getConfiguration('friendly_name');
if(is_object($device)){
$to = $device->getConfiguration('friendly_name');
}else{
$to = 'N/A ('.z2m::convert_to_addr($binding['target']['id']).')';
}
}

echo '<tr data-cluster="' . $binding['cluster'] . '" data-from="' . $infos['ieee_address'] . '" data-to="' . $to . '">';
Expand Down Expand Up @@ -543,4 +547,4 @@
}
});
});
</script>
</script>

0 comments on commit 8ec1ce0

Please sign in to comment.