From 305d25eb8e881c21d7b0cb02af24f705a5acf3b0 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 26 May 2011 15:00:54 +0000 Subject: [PATCH] fixing this git-svn-id: http://www.observium.org/svn/observer/trunk@2368 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/macaccounting/auth.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/html/includes/graphs/macaccounting/auth.inc.php b/html/includes/graphs/macaccounting/auth.inc.php index 75e0322265..a90acaaae3 100644 --- a/html/includes/graphs/macaccounting/auth.inc.php +++ b/html/includes/graphs/macaccounting/auth.inc.php @@ -10,7 +10,7 @@ if (is_numeric($id)) if($auth || port_permitted($acc['interface_id'])) { if(is_file($config['rrd_dir'] . "/" . $acc['hostname'] . "/" . safename("cip-" . $acc['ifIndex'] . "-" . $acc['mac'] . ".rrd"))) - { + { $rrd_filename = $config['rrd_dir'] . "/" . $acc['hostname'] . "/" . safename("cip-" . $acc['ifIndex'] . "-" . $acc['mac'] . ".rrd"); $port = get_port_by_id($acc['interface_id']); @@ -19,12 +19,16 @@ if (is_numeric($id)) $title .= " :: Port ".generate_port_link($port); $title .= " :: " . formatMac($acc['mac']); $auth = TRUE; + } else { + $graph_error = "file not found"; } } else { - $graph_error = "file not found"; + $graph_error = "unauthenticated"; } } else { $graph_error = "entry not found"; } +} else { + $graph_error = "invalid id"; } ?>