From 971dcf205ab1d83e8f54866018ccbc6b266fda8e Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Tue, 20 Sep 2011 15:39:24 +0000 Subject: [PATCH] dont show commands that arent being run in non-debug when doing graph debug git-svn-id: http://www.observium.org/svn/observer/trunk@2521 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/graph.inc.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/html/includes/graphs/graph.inc.php b/html/includes/graphs/graph.inc.php index 5ea8d6c5cb..dcaae7233b 100644 --- a/html/includes/graphs/graph.inc.php +++ b/html/includes/graphs/graph.inc.php @@ -144,11 +144,14 @@ if ($error_msg) { if ($config['rrdcached']) { $rrd_switches = " --daemon ".$config['rrdcached'] . " "; } rrdtool_graph($graphfile, " $rrd_options"); if ($debug) { echo("
".$rrd_cmd."
"); } - if (is_file($graphfile) && !$debug) + if (is_file($graphfile)) { - header('Content-type: image/png'); - $fd = fopen($graphfile,'r');fpassthru($fd);fclose($fd); - unlink($graphfile); + if (!$debug) + { + header('Content-type: image/png'); + $fd = fopen($graphfile,'r');fpassthru($fd);fclose($fd); + unlink($graphfile); + } } else {