X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fagent_type.cgi;h=5473804e825bde1bb86594a0ef987ab90f86a23c;hp=c61208c83afdc1d4f117f4447aa047fadd0cd642;hb=b377b1408398c471689e35dabb1bf14ef263a644;hpb=b487a58e0f36136dbd714916f98a4eaed2373bb0 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) ;