that was DUM
authorjeff <jeff>
Mon, 15 Jan 2007 22:15:26 +0000 (22:15 +0000)
committerjeff <jeff>
Mon, 15 Jan 2007 22:15:26 +0000 (22:15 +0000)
httemplate/edit/process/quick-charge.cgi

index f614dd5..a2eba3a 100644 (file)
@@ -6,7 +6,7 @@
 %  for ( my $row = 0; exists($param->{"description$row"}); $row++ ) {
 %    push @description, $param->{"description$row"};
 %  }
 %  for ( my $row = 0; exists($param->{"description$row"}); $row++ ) {
 %    push @description, $param->{"description$row"};
 %  }
-%  pop @description until ($description[$#description]);
+%  pop @description until (!@description || $description[$#description]);
 %
 %  $param->{"custnum"} =~ /^(\d+)$/
 %    or $error .= "Illegal customer number " . $param->{"custnum"} . "  ";
 %
 %  $param->{"custnum"} =~ /^(\d+)$/
 %    or $error .= "Illegal customer number " . $param->{"custnum"} . "  ";