%>
-<%= header("$action Agent Type", menubar(
+<%= include("/elements/header.html","$action Agent Type", menubar(
'Main Menu' => "$p",
'View all agent types' => "${p}browse/agent_type.cgi",
))
'hashref' => { 'disabled' => '' },
'select' => 'part_pkg.*',
'addl_from' => 'LEFT JOIN type_pkgs USING ( pkgpart )',
- 'extra_sql' => 'OR typenum = '. $agent_type->typenum,
+ 'extra_sql' => ( $agent_type->typenum
+ ? 'OR typenum = '. $agent_type->typenum
+ : ''
+ ),
})
) {
%>