% my( $agentnum, %opt ) = @_; my @agents; if ( $opt{'agents'} ) { @agents = @{ $opt{'agents'} }; } else { @agents = qsearch( 'agent', { disabled=>'' } ); } %> <% if ( scalar(@agents) == 1 ) { %> <% } else { %>