Zombies arghhhhhhhhh

This commit is contained in:
Neil Lathwood
2017-01-03 09:51:35 +00:00
committed by GitHub
parent 442b3ee3ab
commit 75d5e41fd3

View File

@ -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);