chiark / gitweb /
do check end
[rrd-graphs.git] / cgi
diff --git a/cgi b/cgi
index cc6c5b2d39da6d67b4f416b8cfc532d221c8e91d..2df45cce350126a9eb24bb906df3164fa0b01d17 100755 (executable)
--- 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";