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"); // Graph Template Missing");
} }
function graph_error($string) function graph_error($string)
{ {
global $vars, $config, $debug, $graphfile; global $vars, $config, $debug, $graphfile;
@@ -77,7 +76,6 @@ function graph_error($string)
fpassthru($fd); fpassthru($fd);
fclose($fd); fclose($fd);
unlink($graphfile); unlink($graphfile);
exit();
} }
} else { } else {
if (!$debug) { if (!$debug) {
@@ -89,11 +87,9 @@ function graph_error($string)
imagestring($im, 3, $px, ($height / 2 - 8), $string, imagecolorallocate($im, 128, 0, 0)); imagestring($im, 3, $px, ($height / 2 - 8), $string, imagecolorallocate($im, 128, 0, 0));
imagepng($im); imagepng($im);
imagedestroy($im); imagedestroy($im);
exit();
} }
} }
if ($error_msg) { if ($error_msg) {
// We have an error :( // We have an error :(
graph_error($graph_error); graph_error($graph_error);