validator/httpd/cgi-bin check,1.305.2.137,1.305.2.138

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv21559

Modified Files:
      Tag: validator-0_6_0-branch
	check 
Log Message:
Avoid error log warning when ESIS is empty.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.305.2.137
retrieving revision 1.305.2.138
diff -u -d -r1.305.2.137 -r1.305.2.138
--- check	21 May 2004 00:55:36 -0000	1.305.2.137
+++ check	23 May 2004 08:02:57 -0000	1.305.2.138
@@ -749,7 +749,7 @@
   }
   undef $spout;
 
-  if ($File->{ESIS}->[-1] =~ /^C$/) {
+  if (@{$File->{ESIS}} && $File->{ESIS}->[-1] =~ /^C$/) {
     pop(@{$File->{ESIS}});
     $File->{'Is Valid'} = TRUE;
   } else {

Received on Sunday, 23 May 2004 04:05:37 UTC