diff --git a/html/graph.php b/html/graph.php index d7f6078ab..bd1063b65 100644 --- a/html/graph.php +++ b/html/graph.php @@ -56,7 +56,7 @@ if($_GET['debug']) { } if($rrd_options) { -# echo("
".$config['rrdtool'] . " graph $graphfile $rrd_options");
+    if($_GET['debug']) { echo("
".$config['rrdtool'] . " graph $graphfile $rrd_options"); }
     $thing = shell_exec($config['rrdtool'] . " graph $graphfile $rrd_options");
     if(is_file($graphfile)) {
       header('Content-type: image/png');