Skip to content

Commit

Permalink
Fixed errpor
Browse files Browse the repository at this point in the history
  • Loading branch information
meklis committed Nov 3, 2024
1 parent eb6bbd8 commit f523ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/General/LldpInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ protected function formate()
}
}
if (isset($this->response['lldp.locPortId'])) {
$ports = [];
if ($error = $this->getResponseByName('lldp.locPortId')->error()) {
$this->logger->error($error);
} else {
$ports = [];
foreach ($this->getResponseByName('lldp.locPortId')->fetchAll() as $dt) {
$id = Helper::getIndexByOid($dt->getOid());
$ports[] = [
Expand Down

0 comments on commit f523ee4

Please sign in to comment.