From: Ian Jackson Date: Mon, 28 Jun 2010 02:00:11 +0000 (+0100) Subject: do check end X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=cdcd75d1ffde3f83362bf752b1d2cf0d3b480946;p=rrd-graphs.git do check end --- diff --git a/cgi b/cgi index cc6c5b2..2df45cc 100755 --- a/cgi +++ b/cgi @@ -264,6 +264,7 @@ if (defined $elem) { $sloth =~ m/^(\d+)$/ or die; $sloth= $1+0; my $end= $g->{TimeRanges}[$sloth]; + die unless defined $end; my $cacheid= "$section!$group!$elem!$sloth!$width!$height"; my $cachepath= "cache/$cacheid.png";