Skip to content

Commit 4ff90f0

Browse files
committed
fix(mailer): check if authentication is neccessary
Signed-off-by: Anna Larch <anna@nextcloud.com>
1 parent acca2bd commit 4ff90f0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

apps/settings/templates/settings/admin/additional-mail.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,8 @@
127127
<span class="icon-info" title="<?php p($l->t('Only applies when authentication is required')); ?>"></span>
128128
</label>
129129
<select name="mail_smtpauthtype" id="mail_smtpauthtype" disabled="disabled">
130-
<?php foreach ($mail_smtpauthtype as $authtype => $name):
131-
$selected = '';
132-
if ($authtype == $_['mail_smtpauthtype']):
133-
$selected = 'selected="selected"';
134-
endif; ?>
135-
<option value="<?php p($authtype) ?>" <?php p($selected) ?>><?php p($name) ?></option>
130+
<?php foreach ($mail_smtpauthtype as $authtype => $name): ?>
131+
<option value="<?php p($authtype) ?>"><?php p($name) ?></option>
136132
<?php endforeach; ?>
137133
</select>
138134

0 commit comments

Comments
 (0)