summaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-03-24 15:34:39 +0100
committerGitHub <noreply@github.com>2023-03-24 15:34:39 +0100
commitfda9d4d0c1ade494a4ea380da0ee2470a2a4d14f (patch)
tree5942ca622c10ed883b01d882957af740864c876b /apps/settings
parent30d6effe123c7ff5b42933d44b2c13fc67e7e5ec (diff)
parent1368012d97dcad5e6e1ae0a674d5c6ba43559783 (diff)
downloadnextcloud-server-fda9d4d0c1ade494a4ea380da0ee2470a2a4d14f.tar.gz
nextcloud-server-fda9d4d0c1ade494a4ea380da0ee2470a2a4d14f.zip
Merge pull request #37340 from nextcloud/fix/undefined-index-mailer-settings
fix(mailer): remove value comparison for smtp_authtype as there is only one option
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>