diff --git a/html/pages/device.inc.php b/html/pages/device.inc.php index 64f5ab157..2f27ebc04 100644 --- a/html/pages/device.inc.php +++ b/html/pages/device.inc.php @@ -218,7 +218,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device']) } $device_pw_count = @dbFetchCell("SELECT COUNT(*) FROM `pseudowires` WHERE `device_id` = ?", array($device['device_id'])); - if ($device_routing_count) + if ($device_pw_count) { echo('