Skip to content

Commit

Permalink
Merge pull request #37391 from nextcloud/backport/37340/stable26
Browse files Browse the repository at this point in the history
[stable26] fix(mailer): remove value comparison for smtp_authtype as there is only one option
  • Loading branch information
szaimen authored Mar 27, 2023
2 parents 56f6fc0 + 3cd5568 commit 02f1eba
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions apps/settings/templates/settings/admin/additional-mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,8 @@
<span class="icon-info" title="<?php p($l->t('Only applies when authentication is required')); ?>"></span>
</label>
<select name="mail_smtpauthtype" id="mail_smtpauthtype" disabled="disabled">
<?php foreach ($mail_smtpauthtype as $authtype => $name):
$selected = '';
if ($authtype == $_['mail_smtpauthtype']):
$selected = 'selected="selected"';
endif; ?>
<option value="<?php p($authtype) ?>" <?php p($selected) ?>><?php p($name) ?></option>
<?php foreach ($mail_smtpauthtype as $authtype => $name): ?>
<option value="<?php p($authtype) ?>"><?php p($name) ?></option>
<?php endforeach; ?>
</select>

Expand Down

0 comments on commit 02f1eba

Please sign in to comment.