Skip to content

Commit

Permalink
Fix imap tls and starttls radio button
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow243 authored and josaphatim committed Aug 14, 2024
1 parent 7eea330 commit 8b0ed3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/imap/output_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -1361,13 +1361,13 @@ protected function output() {
</div>
<div class="p-2 flex-fill">
<div class="form-check">
<input class="form-check-input" type="radio" id="imap_tls" name="srv_setup_stepper_imap_tls">
<input class="form-check-input" type="radio" id="imap_tls" name="srv_setup_stepper_imap_tls" value="true">
<label class="form-check-label" style="font-size: 12px;" for="imap_tls">
'.$this->trans('Use TLS').'
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="imap_start_tls" name="srv_setup_stepper_imap_tls" checked>
<input class="form-check-input" type="radio" id="imap_start_tls" name="srv_setup_stepper_imap_tls" value="false" checked>
<label class="form-check-label" style="font-size: 12px;" for="imap_start_tls">
'.$this->trans('STARTTLS or unencrypted').'
</label>
Expand Down
2 changes: 1 addition & 1 deletion modules/imap_folders/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function process() {
$imap = Hm_IMAP_List::connect($form['imap_server_id'], $cache);

if (!is_object($imap) || $imap->get_state() != 'authenticated') {
Hm_Msgs('ERRUnable to connect to the selected IMAP server');
Hm_Msgs::add('ERRUnable to connect to the selected IMAP server');
return;
}
$specials = $this->user_config->get('special_imap_folders', array());
Expand Down

0 comments on commit 8b0ed3a

Please sign in to comment.