diff --git a/lib/rrd.php b/lib/rrd.php index 367db7c899..a7bf179e10 100644 --- a/lib/rrd.php +++ b/lib/rrd.php @@ -664,9 +664,9 @@ function rrdtool_function_graph($local_graph_id, $rra_id, $graph_data_array, $rr /* display the timespan for zoomed graphs */ if ((isset($graph_data_array["graph_start"])) && (isset($graph_data_array["graph_end"]))) { if (($graph_data_array["graph_start"] < 0) && ($graph_data_array["graph_end"] < 0)) { - $graph_legend .= "COMMENT:\"From " . date($graph_date, time()+$graph_data_array["graph_start"]) . " To " . date($graph_date, time()+$graph_data_array["graph_end"]) . "\\c\"" . RRD_NL . "COMMENT:\"\\n\"" . RRD_NL; + $graph_legend .= "COMMENT:\"From " . date($graph_date, time()+$graph_data_array["graph_start"]) . " To " . date($graph_date, time()+$graph_data_array["graph_end"]) . "\\c\"" . RRD_NL . "COMMENT:\" \\n\"" . RRD_NL; }else if (($graph_data_array["graph_start"] >= 0) && ($graph_data_array["graph_end"] >= 0)) { - $graph_legend .= "COMMENT:\"From " . date($graph_date, $graph_data_array["graph_start"]) . " To " . date($graph_date, $graph_data_array["graph_end"]) . "\\c\"" . RRD_NL . "COMMENT:\"\\n\"" . RRD_NL; + $graph_legend .= "COMMENT:\"From " . date($graph_date, $graph_data_array["graph_start"]) . " To " . date($graph_date, $graph_data_array["graph_end"]) . "\\c\"" . RRD_NL . "COMMENT:\" \\n\"" . RRD_NL; } }