]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(mailer): check if authentication is neccessary 37340/head
authorAnna Larch <anna@nextcloud.com>
Wed, 22 Mar 2023 11:35:51 +0000 (12:35 +0100)
committerAnna (Rebase PR Action) <miaulalala@users.noreply.github.com>
Fri, 24 Mar 2023 10:26:04 +0000 (10:26 +0000)
Signed-off-by: Anna Larch <anna@nextcloud.com>
apps/settings/templates/settings/admin/additional-mail.php

index 64e57e87ee9ced4f014a748400e0b46d6cf04b2b..55c58f4caa520ec4b80dc03dedad0f74ef9619fd 100644 (file)
@@ -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>