From 32a7af3c1d8d1c7687aefd94185f253eb34bff88 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Fri, 16 Dec 2011 11:36:26 +0000 Subject: [PATCH] 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 --- html/pages/device/ports.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/pages/device/ports.inc.php b/html/pages/device/ports.inc.php index 95897c6c3..e3ffaa6b7 100644 --- a/html/pages/device/ports.inc.php +++ b/html/pages/device/ports.inc.php @@ -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'],