diff options
author | Simon L <szaimen@e.mail.de> | 2023-03-27 12:31:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 12:31:31 +0200 |
commit | 02f1ebab09a5c8b5ddeb1276601456de07e718ee (patch) | |
tree | a17cd03f8cd823bccc3afdb801e878a2e1055f6b /apps | |
parent | 56f6fc01e8fa2e3e1f124f6320e1be5be466cb71 (diff) | |
parent | 3cd55687988e65ecfc3c0e24d84fbd40899098aa (diff) | |
download | nextcloud-server-02f1ebab09a5c8b5ddeb1276601456de07e718ee.tar.gz nextcloud-server-02f1ebab09a5c8b5ddeb1276601456de07e718ee.zip |
Merge pull request #37391 from nextcloud/backport/37340/stable26
[stable26] fix(mailer): remove value comparison for smtp_authtype as there is only one option
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/templates/settings/admin/additional-mail.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/settings/templates/settings/admin/additional-mail.php b/apps/settings/templates/settings/admin/additional-mail.php index 64e57e87ee9..55c58f4caa5 100644 --- a/apps/settings/templates/settings/admin/additional-mail.php +++ b/apps/settings/templates/settings/admin/additional-mail.php @@ -127,12 +127,8 @@ $mail_sendmailmode = [ <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> |