From: Ivan Kohler Date: Fri, 23 Oct 2015 23:15:21 +0000 (-0700) Subject: silent harmless param in list context warning X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=2bc72d758fc28a4a8beb24d7a93d5502d0355ca6 silent harmless param in list context warning --- diff --git a/httemplate/misc/sales.cgi b/httemplate/misc/sales.cgi index 2b6406a68..5d9d6c6d1 100644 --- a/httemplate/misc/sales.cgi +++ b/httemplate/misc/sales.cgi @@ -1,7 +1,7 @@ <% encode_json( \@return ) %>\ <%init> -my( $agentnum ) = $cgi->param('arg'); +my $agentnum = scalar($cgi->param('arg')); my %hash = ( 'disabled' => '' ); if ( $agentnum > 0 ) {