From f4def07b2d04618dbd0c22ba9353481ad5c570ea Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Tue, 27 Sep 2011 17:02:17 +0000 Subject: [PATCH] only show protocols we have devices for git-svn-id: http://www.observium.org/svn/observer/trunk@2600 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/routing.inc.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/html/pages/routing.inc.php b/html/pages/routing.inc.php index d70cf86ce..cf2d4d69d 100644 --- a/html/pages/routing.inc.php +++ b/html/pages/routing.inc.php @@ -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(''); } - 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(""); } - $sep = " | "; } print_optionbar_end();