Skip to content

Commit 28ca013

Browse files
committed
allow only custom server option to be enabled on login screen
1 parent cbd10aa commit 28ca013

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/views/auth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
</div>
88
<?php
99
$serverList = getServerList();
10-
if ($serverList !== false && count($serverList) > 1) {
10+
$selServer = v($_REQUEST['server']);
11+
if ( ($serverList !== false && count($serverList) > 1) || (ALLOW_CUSTOM_SERVERS && ALLOW_CUSTOM_SERVER_TYPES)) {
1112
?>
1213
<div>
1314
<label><?php echo __('Server'); ?>:</label><select name="server" id="server">
1415
<?php
15-
$selServer = v($_REQUEST['server']);
1616
foreach($serverList as $server => $host) {
1717
if ($selServer == $server)
1818
echo '<option value="'.htmlspecialchars($server).'" selected="selected">'.htmlspecialchars($server ? $server : __('Custom Server')).'</option>';

0 commit comments

Comments
 (0)