diff options
| author | 2014-01-23 18:03:44 +0100 | |
|---|---|---|
| committer | 2014-01-23 18:03:44 +0100 | |
| commit | 4985e457eb004a4455148802a52ad14d81e7276f (patch) | |
| tree | cb561da3b15cc333977edf6ad8506aa04995a361 /p/i | |
| parent | 3eb5d216f3dd2a18427a62ea52f256b03a1027c7 (diff) | |
N'affiche <option></option> que lorsque nécessaire
Corrige https://github.com/marienfressinaud/FreshRSS/issues/372
Diffstat (limited to 'p/i')
| -rw-r--r-- | p/i/install.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/p/i/install.php b/p/i/install.php index 7ce4a5ccc..a8ea75c9c 100644 --- a/p/i/install.php +++ b/p/i/install.php @@ -805,7 +805,9 @@ function printStep2 () { <label class="group-name" for="auth_type"><?php echo _t('auth_type'); ?></label> <div class="group-controls"> <select id="auth_type" name="auth_type" required="required"> - <option value=""></option> + <?php if (!in_array($_SESSION['auth_type'], array('form', 'persona', 'http_auth', 'none'))) { ?> + <option selected="selected"></option> + <?php } ?> <option value="form"<?php echo $_SESSION['auth_type'] === 'form' ? ' selected="selected"' : '', version_compare(PHP_VERSION, '5.3', '<') ? ' disabled="disabled"' : ''; ?>><?php echo _t('auth_form'); ?></option> <option value="persona"<?php echo $_SESSION['auth_type'] === 'persona' ? ' selected="selected"' : ''; ?>><?php echo _t('auth_persona'); ?></option> <option value="http_auth"<?php echo $_SESSION['auth_type'] === 'http_auth' ? ' selected="selected"' : '', httpAuthUser() == '' ? ' disabled="disabled"' : ''; ?>><?php echo _t('http_auth'); ?> (REMOTE_USER = '<?php echo httpAuthUser(); ?>')</option> |
