File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939];
4040
4141$ mail_smtpmode = [
42- 'php ' ,
43- 'smtp ' ,
42+ [ 'php ' , ' PHP ' ] ,
43+ [ 'smtp ' , ' SMTP ' ] ,
4444];
4545if ($ _ ['sendmail_is_available ' ]) {
46- $ mail_smtpmode [] = 'sendmail ' ;
46+ $ mail_smtpmode [] = [ 'sendmail ' , ' Sendmail ' ] ;
4747}
4848if ($ _ ['mail_smtpmode ' ] == 'qmail ' ) {
49- $ mail_smtpmode [] = 'qmail ' ;
49+ $ mail_smtpmode [] = [ 'qmail ' , ' qmail ' ] ;
5050}
5151?>
5252
414414 <select name='mail_smtpmode' id='mail_smtpmode'>
415415 <?php foreach ($ mail_smtpmode as $ smtpmode ):
416416 $ selected = '' ;
417- if ($ smtpmode == $ _ ['mail_smtpmode ' ]):
417+ if ($ smtpmode[ 0 ] == $ _ ['mail_smtpmode ' ]):
418418 $ selected = 'selected="selected" ' ;
419419 endif ; ?>
420- <option value='<?php p ($ smtpmode )?> ' <?php p ($ selected ) ?> ><?php p ($ smtpmode ) ?> </option>
420+ <option value='<?php p ($ smtpmode[ 0 ] )?> ' <?php p ($ selected ) ?> ><?php p ($ smtpmode[ 1 ] ) ?> </option>
421421 <?php endforeach ;?>
422422 </select>
423423
You can’t perform that action at this time.
0 commit comments