From 09eaabd1773754b9759e35c98f1aeebdaad3db35 Mon Sep 17 00:00:00 2001 From: Ian Berry Date: Tue, 27 May 2003 18:08:44 +0000 Subject: [PATCH] added isset() check for autopadding git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@973 860744bd-22fc-0310-8c96-e9fe5004b5ca --- lib/rrd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rrd.php b/lib/rrd.php index 591ac630cc..5466a7e840 100644 --- a/lib/rrd.php +++ b/lib/rrd.php @@ -533,7 +533,7 @@ function rrdtool_function_graph($local_graph_id, $rra_id, $graph_data_array) { /* if we are not displaying a legend there is no point in us even processing the auto padding, text format stuff. */ - if ((!isset($graph_data_array["graph_nolegend"])) && ($graph["auto_padding"] == "on")) { + if ((!isset($graph_data_array["graph_nolegend"])) && ($graph["auto_padding"] == "on") && (isset($text_format_lengths{$graph_item["data_template_rrd_id"]}))) { /* we are basing how much to pad on area and stack text format, not gprint. but of course the padding has to be displayed in gprint, how fun! */