From ee819eabb9743a457784f1998ddcb57e6ab1ee10 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 3 May 2012 09:07:14 +0000 Subject: [PATCH] show pseudowire tab when pseudowires exist rather than when routing exist. git-svn-id: http://www.observium.org/svn/observer/trunk@3122 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/pages/device.inc.php b/html/pages/device.inc.php index 64f5ab1573..2f27ebc04f 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('