From 1734e3af04d4ac089b8c0e8a8a499609539dd494 Mon Sep 17 00:00:00 2001 From: Denny Friebe Date: Tue, 4 May 2021 14:49:16 +0200 Subject: [PATCH] Fix allow_unauth_graphs (#12829) --- html/graph.php | 1 + includes/html/graphs/graph.inc.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/html/graph.php b/html/graph.php index 50eefd6b95..b4277147d6 100644 --- a/html/graph.php +++ b/html/graph.php @@ -10,6 +10,7 @@ use LibreNMS\Data\Store\Datastore; use LibreNMS\Util\Debug; +$auth = false; $start = microtime(true); $init_modules = ['web', 'graphs', 'auth']; diff --git a/includes/html/graphs/graph.inc.php b/includes/html/graphs/graph.inc.php index 32572e4e2e..ba30890e58 100644 --- a/includes/html/graphs/graph.inc.php +++ b/includes/html/graphs/graph.inc.php @@ -31,7 +31,6 @@ $prev_from = ($from - $period); $graph_image_type = $vars['graph_type'] ?? Config::get('webui.graph_type'); $rrd_options = ''; -$auth = false; require Config::get('install_dir') . "/includes/html/graphs/$type/auth.inc.php";