aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2023-03-22 12:35:51 +0100
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-03-24 14:45:22 +0000
commit3cd55687988e65ecfc3c0e24d84fbd40899098aa (patch)
treebc9b4fa263075b5ab78f66993c11b4a121a7d438 /apps/settings
parenta854274875dd52223dfd0a0b6f78e1bb306904b6 (diff)
downloadnextcloud-server-3cd55687988e65ecfc3c0e24d84fbd40899098aa.tar.gz
nextcloud-server-3cd55687988e65ecfc3c0e24d84fbd40899098aa.zip
fix(mailer): check if authentication is neccessary
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/templates/settings/admin/additional-mail.php8
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>