From 960fc875a98a0d75533485b6c3c3bb04be4c01f9 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Fri, 6 Feb 2009 15:17:09 +0000 Subject: [PATCH] fixes git-svn-id: http://www.observium.org/svn/observer/trunk@348 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/print-interface-graphs.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/includes/print-interface-graphs.php b/html/includes/print-interface-graphs.php index 4e43c48822..07eb59c957 100644 --- a/html/includes/print-interface-graphs.php +++ b/html/includes/print-interface-graphs.php @@ -4,6 +4,8 @@ if(!$graph_type) { $graph_type = $_GET['type']; } + if(!$device) { $device['device_id'] = getifhost($interface['interface_id']); } + $daily_traffic = "graph.php?if=" . $interface['interface_id'] . "&type=$graph_type&from=$day&to=$now&width=215&height=100"; $daily_url = "graph.php?if=" . $interface['interface_id'] . "&type=$graph_type&from=$day&to=$now&width=500&height=150";