diff --git a/html/pages/device/ports.inc.php b/html/pages/device/ports.inc.php index 2844889c6..dac28747d 100644 --- a/html/pages/device/ports.inc.php +++ b/html/pages/device/ports.inc.php @@ -15,7 +15,7 @@ if(mysql_result(mysql_query("SELECT * FROM links AS L, ports AS I WHERE I.device { $menu_options['neighbours'] = 'Neighbours'; } -if(mysql_result(mysql_query("SELECT COUNT(*) FROM `interfaces` WHERE `ifType` = 'adsl'"),0)) +if(mysql_result(mysql_query("SELECT COUNT(*) FROM `ports` WHERE `ifType` = 'adsl'"),0)) { $menu_options['adsl'] = 'ADSL'; }