Skip to content

Commit

Permalink
Fixed undefined variable when no IMAP auth
Browse files Browse the repository at this point in the history
  • Loading branch information
josaphatim committed Jun 21, 2024
1 parent b2e65a8 commit be21163
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/imap/handler_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -1564,12 +1564,12 @@ public function process() {
if (! empty($auth_server['sieve_config_host'])) {
$imap_details['sieve_config_host'] = $auth_server['sieve_config_host'];
}
}
if (!$default_server_id) {
Hm_IMAP_List::add($imap_details);
} else {
// Perhaps something as changed
Hm_IMAP_List::edit($default_server_id, $imap_details);
if (!$default_server_id) {
Hm_IMAP_List::add($imap_details);
} else {
// Perhaps something as changed
Hm_IMAP_List::edit($default_server_id, $imap_details);
}
}
}
}
Expand Down

0 comments on commit be21163

Please sign in to comment.