Skip to content

Commit

Permalink
If Mail Account has empty password, it's still regarded as imap
Browse files Browse the repository at this point in the history
  • Loading branch information
asig2016 committed Feb 28, 2017
1 parent 80cb358 commit b4e29ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/Mail/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public function imapServer($_adminConnection=false, $_timeout=null)
*/
public function is_imap($try_connect=true)
{
if (empty($this->acc_imap_host) || empty($this->acc_imap_username) || empty($this->acc_imap_password))
if (empty($this->acc_imap_host) && empty($this->acc_imap_username) && empty($this->acc_imap_password))
{
return false; // no imap host or credentials
}
Expand Down

0 comments on commit b4e29ed

Please sign in to comment.