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"); |     // 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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user