diff --git a/html/pages/device/routing.inc.php b/html/pages/device/routing.inc.php index 8409a09332..4af353351c 100644 --- a/html/pages/device/routing.inc.php +++ b/html/pages/device/routing.inc.php @@ -6,7 +6,7 @@ $datas[] = 'overview'; $bgp_count = mysql_result(mysql_query("select count(*) from bgpPeers WHERE device_id = '" . $device['device_id'] . "'"), 0); if ($bgp_count) { $datas[] = 'bgp'; } -$bgp_count = mysql_result(mysql_query("select count(*) from cef_switching WHERE device_id = '" . $device['device_id'] . "'"), 0); +$cef_count = mysql_result(mysql_query("select count(*) from cef_switching WHERE device_id = '" . $device['device_id'] . "'"), 0); if ($cef_count) { $datas[] = 'cef'; } $type_text['overview'] = "Overview";