Fix graph errors (#15407)

Some graphs were generating an error that wasn't being correctly output as an image
This commit is contained in:
Tony Murray
2023-10-06 08:22:22 -05:00
committed by GitHub
parent 072d52e9fd
commit 6d9178cd42

View File

@@ -39,6 +39,7 @@ if (session('preferences.timezone')) {
$env['TZ'] = session('preferences.timezone'); $env['TZ'] = session('preferences.timezone');
} }
try {
require Config::get('install_dir') . "/includes/html/graphs/$type/auth.inc.php"; require Config::get('install_dir') . "/includes/html/graphs/$type/auth.inc.php";
if ($auth && is_customoid_graph($type, $subtype)) { if ($auth && is_customoid_graph($type, $subtype)) {
@@ -86,7 +87,6 @@ if (empty($rrd_options)) {
} }
// Generating the graph! // Generating the graph!
try {
$image_data = Rrd::graph($rrd_options, $env); $image_data = Rrd::graph($rrd_options, $env);
// output the graph // output the graph