mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
make sure to unset $peerhost if no match, else will match previous entry in the table (durr)
git-svn-id: http://www.observium.org/svn/observer/trunk@733 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -41,11 +41,12 @@ print_optionbar_end();
|
||||
$query .= " AND D.device_id = I.device_id";
|
||||
$ipv6_host = mysql_fetch_array(mysql_query($query));
|
||||
|
||||
if($ipv4_host) {
|
||||
$peerhost = $ipv4_host;
|
||||
} elseif($ipv6_host) {
|
||||
$peerhost = $ipv6_host;
|
||||
}
|
||||
if($ipv4_host) {
|
||||
$peerhost = $ipv4_host;
|
||||
} elseif($ipv6_host) {
|
||||
$peerhost = $ipv6_host;
|
||||
} else { unset($peerhost); }
|
||||
|
||||
if($peerhost) {
|
||||
$peername = generatedevicelink($peerhost);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user