mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Zombies arghhhhhhhhh
This commit is contained in:
@ -53,7 +53,6 @@ if ($auth === true && is_custom_graph($type, $subtype, $device)) {
|
||||
// Graph Template Missing");
|
||||
}
|
||||
|
||||
|
||||
function graph_error($string)
|
||||
{
|
||||
global $vars, $config, $debug, $graphfile;
|
||||
@ -77,7 +76,6 @@ function graph_error($string)
|
||||
fpassthru($fd);
|
||||
fclose($fd);
|
||||
unlink($graphfile);
|
||||
exit();
|
||||
}
|
||||
} else {
|
||||
if (!$debug) {
|
||||
@ -89,11 +87,9 @@ function graph_error($string)
|
||||
imagestring($im, 3, $px, ($height / 2 - 8), $string, imagecolorallocate($im, 128, 0, 0));
|
||||
imagepng($im);
|
||||
imagedestroy($im);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($error_msg) {
|
||||
// We have an error :(
|
||||
graph_error($graph_error);
|
||||
|
Reference in New Issue
Block a user