summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2003-12-21 23:16:46 +0000
committerivan <ivan>2003-12-21 23:16:46 +0000
commit6497df7870d615b548f42420eae1d7eb40b594f3 (patch)
tree73f7e6dfc5baed6a29e0cba6b4ad278326bda606 /httemplate
parentda7d82ddd0eb54480aab845220004217b9ad07b6 (diff)
work even if there are stray type_pkgs records around
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/browse/agent_type.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/browse/agent_type.cgi b/httemplate/browse/agent_type.cgi
index c61208c83..5473804e8 100755
--- a/httemplate/browse/agent_type.cgi
+++ b/httemplate/browse/agent_type.cgi
@@ -19,7 +19,7 @@ foreach my $agent_type ( sort {
} qsearch('agent_type',{}) ) {
my $hashref = $agent_type->hashref;
#more efficient to do this with SQL...
- my @type_pkgs = grep { ! $_->part_pkg->disabled }
+ my @type_pkgs = grep { $_->part_pkg and ! $_->part_pkg->disabled }
qsearch('type_pkgs',{'typenum'=> $hashref->{typenum} });
my $rowspan = scalar(@type_pkgs);
$rowspan = int($rowspan/2+0.5) ;