If Mail Account has empty password, it's still regarded as imap

This commit is contained in:
A Sigalas 2017-02-28 12:40:14 +00:00
parent 80cb358d88
commit b4e29edaea

View File

@ -397,7 +397,7 @@ class Account implements \ArrayAccess
*/
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
}