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
This commit is contained in:
Adam Amstrong
2012-05-03 09:07:14 +00:00
parent 1c616889dc
commit ee819eabb9

View File

@@ -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('<li class="' . $select['pseudowires'] . '">
<a href="'.generate_device_url($device, array('tab' => 'pseudowires')).'">