Skip to content

Commit

Permalink
[#667 state:resolved] Test $param{mail_transfer} variable in two plac…
Browse files Browse the repository at this point in the history
…es to suppress uninitialized value warnings on Mail Configuration page in wizard.cgi.
  • Loading branch information
dphillips committed Dec 13, 2010
1 parent 25a91bf commit bcd2058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MT/App/Wizard.pm
Original file line number Diff line number Diff line change
Expand Up @@ -861,12 +861,12 @@ sub optional {
{ id => 'sendmail', name => $app->translate('Sendmail') };

foreach (@$transfer) {
if ( $_->{id} eq $param{mail_transfer} ) {
if ( $param{mail_transfer} && $_->{id} eq $param{mail_transfer} ) {
$_->{selected} = 1;
}
}

$param{ 'use_' . $param{mail_transfer} } = 1;
$param{ 'use_' . $param{mail_transfer} } = 1 if $param{mail_transfer};
$param{mail_loop} = $transfer;
$param{config} = $app->serialize_config(%param);

Expand Down

0 comments on commit bcd2058

Please sign in to comment.