only show protocols we have devices for

git-svn-id: http://www.observium.org/svn/observer/trunk@2600 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-09-27 17:02:17 +00:00
parent 27163fcffa
commit f4def07b2d
+7 -3
View File
@@ -23,15 +23,19 @@ foreach ($routing_count as $type => $value)
{
if (!$vars['protocol']) { $vars['protocol'] = $type; }
echo($sep);
echo($sep); unset($sep);
if ($vars['protocol'] == $type)
{
echo('<span class="pagemenu-selected">');
}
echo(generate_link($type_text[$type] ." (".$routing_count[$type].")",array('page'=> 'routing', 'protocol' => $type)));
if ($routing_count[$type])
{
echo(generate_link($type_text[$type] ." (".$routing_count[$type].")",array('page'=> 'routing', 'protocol' => $type)));
$sep = " | ";
}
if ($vars['protocol'] == $type) { echo("</span>"); }
$sep = " | ";
}
print_optionbar_end();