diff options
author | ivan <ivan> | 2003-12-21 23:16:45 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-12-21 23:16:45 +0000 |
commit | 6a751696054face897088706d222d5c9383d40fe (patch) | |
tree | bf8a294808a3eecaf765eaa70acf994df1c44b31 /httemplate/browse | |
parent | 3dc9375300fa2b9706e2b5707694022962f65b4d (diff) |
work even if there are stray type_pkgs records around
Diffstat (limited to 'httemplate/browse')
-rwxr-xr-x | httemplate/browse/agent_type.cgi | 2 |
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) ; |