fix ports page default view for legacy configurations which had a trailing slash

git-svn-id: http://www.observium.org/svn/observer/trunk@2790 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-12-16 11:36:26 +00:00
parent 1511ca3479
commit 32a7af3c1d
+1 -1
View File
@@ -5,7 +5,7 @@ if ($vars['view'] == 'graphs' || $vars['view'] == 'minigraphs')
if (isset($vars['graph'])) { $graph_type = "port_" . $vars['graph']; } else { $graph_type = "port_bits"; }
}
if (!$vars['view']) { $vars['view'] = $config['ports_page_default']; }
if (!$vars['view']) { $vars['view'] = trim($config['ports_page_default'],'/'); }
$link_array = array('page' => 'device',
'device' => $device['device_id'],