summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authormark <mark>2010-05-21 03:48:38 +0000
committermark <mark>2010-05-21 03:48:38 +0000
commit124daa78d5659ed9def66982b0a7600f4088f289 (patch)
tree93f334ed5200181865513b01a83a40a03e0a780c /httemplate
parentdfe3bf05cc94635ae1f9ca233e060acc21d0e487 (diff)
fix typo
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/part_pkg.cgi13
1 files changed, 7 insertions, 6 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi
index 291e078c8..6ef8dd894 100755
--- a/httemplate/edit/part_pkg.cgi
+++ b/httemplate/edit/part_pkg.cgi
@@ -507,12 +507,7 @@ my $html_bottom = sub {
# $html .= ">$freq{$freq}";
#}
- if(!exists($href->{$field})) {
- # shouldn't happen
- warn "nonexistent part_pkg option: '$field'\n";
- next;
- }
- #$html .= '</SELECT></TD></TR>';
+ #$html .= '</SELECT></TD></TR>';
my $href = $plans{$layer}->{'fields'};
my @fields = exists($plans{$layer}->{'fieldorder'})
@@ -521,6 +516,12 @@ my $html_bottom = sub {
foreach my $field ( grep $_ !~ /^(setup|recur)_fee$/, @fields ) {
+ if(!exists($href->{$field})) {
+ # shouldn't happen
+ warn "nonexistent part_pkg option: '$field'\n";
+ next;
+ }
+
$html .= '<TR><TD ALIGN="right">'. $href->{$field}{'name'}. '</TD><TD>';
my $format = sub { shift };