Skip to content

Commit

Permalink
Bug 13991: (QA followup) uninitialized value and [0] in /tools/viewlo…
Browse files Browse the repository at this point in the history
…g.pl

Signed-off-by: Tomas Cohen Arazi <[email protected]>
  • Loading branch information
tomascohen committed Apr 16, 2015
1 parent 7ec3d6d commit 6c5c2d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/viewlog.pl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ =head1 viewlog.pl
$debug or $debug = $cgi_debug;
my $do_it = $input->param('do_it');
my @modules = $input->param("modules");
my $user = $input->param("user");
my $user = $input->param("user") // '';
my @actions = $input->param("actions");
my $object = $input->param("object");
my $info = $input->param("info");
Expand Down Expand Up @@ -127,7 +127,7 @@ =head1 viewlog.pl

my @data;
my ( $results, $modules, $actions );
if ( $actions[0] ne '' ) { $actions = \@actions; } # match All means no limit
if ( defined $actions[0] && $actions[0] ne '' ) { $actions = \@actions; } # match All means no limit
if ( $modules[0] ne '' ) { $modules = \@modules; } # match All means no limit
$results = GetLogs( $datefrom, $dateto, $user, $modules, $actions, $object, $info );
@data = @$results;
Expand Down

0 comments on commit 6c5c2d5

Please sign in to comment.