Skip to content

Commit

Permalink
Fix perl warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Jan 8, 2023
1 parent 1860b12 commit e66df37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mailbox/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ elsif (!defined($in{'folder'}) && $userconfig{'default_folder'}) {
my $df = &find_named_folder($userconfig{'default_folder'}, \@folders);
$in{'folder'} = $df->{'index'} if ($df);
}

# Get the folder by index
if (!defined($in{'folder'})) {
$in{'folder'} = 0;
}
my ($folder) = grep { $_->{'index'} == $in{'folder'} } @folders;

# Show page header
Expand Down

0 comments on commit e66df37

Please sign in to comment.