From 096f551f6f23de5a57f7a9aae3a9f6ec1abd472c Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Fri, 20 May 2011 15:24:46 +0000 Subject: [PATCH] fix mac account total graph (need to split into different types...) git-svn-id: http://www.observium.org/svn/observer/trunk@2352 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/port/mac_acc_total.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/graphs/port/mac_acc_total.inc.php b/html/includes/graphs/port/mac_acc_total.inc.php index 27d43db06..79a520cee 100644 --- a/html/includes/graphs/port/mac_acc_total.inc.php +++ b/html/includes/graphs/port/mac_acc_total.inc.php @@ -61,7 +61,7 @@ foreach ($accs as $acc) $name = $peer['hostname'] . " " . makeshortif($peer['ifDescr']) . " (".$mac.")"; } - if (dbFetchCell("SELECT count(*) FROM bgpPeers WHERE device_id = '".$acc['device_id']."' AND bgpPeerIdentifier = ?", array($addy['ipv4_address'])),0)) + if (dbFetchCell("SELECT count(*) FROM bgpPeers WHERE device_id = '".$acc['device_id']."' AND bgpPeerIdentifier = ?", array($addy['ipv4_address']))) { $peer_info = dbFetchRow("SELECT * FROM bgpPeers WHERE device_id = ? AND bgpPeerIdentifier = ?", array($acc['device_id'], $addy['ipv4_address'])); $name .= " - AS".$peer_info['bgpPeerRemoteAs'];