mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix graph errors (#15407)
Some graphs were generating an error that wasn't being correctly output as an image
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user