From 93a3aa8078dd0d4bb3e571799c1994351d8ef63c Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 26 May 2011 21:35:54 +0000 Subject: [PATCH] updates git-svn-id: http://www.observium.org/svn/observer/trunk@2373 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/graph.inc.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/html/includes/graphs/graph.inc.php b/html/includes/graphs/graph.inc.php index 3e5c9c5b48..47c39014ad 100644 --- a/html/includes/graphs/graph.inc.php +++ b/html/includes/graphs/graph.inc.php @@ -38,10 +38,13 @@ $id = mres($_GET['id']); if (isset($config['allow_unauth_graphs']) && $config['allow_unauth_graphs']) { + $auth = "1"; ## hardcode auth for all with config function } else { - if (!$_SESSION['authenticated']) { graph_error("Session not authenticated"); exit; } -} else { - $auth = "1"; ## hardcode auth for all + if (!$_SESSION['authenticated']) + { + graph_error("Session not authenticated"); + exit; + } } preg_match('/^(?P[A-Za-z0-9]+)_(?P.+)/', mres($_GET['type']), $graphtype); @@ -95,9 +98,7 @@ function graph_error($string) } if ($error_msg) { - graph_error($graph_error); - } elseif (!$auth) { if ($width < 200)