forked from extern/egroupware
Host always needed, not imap if username & pass missing
This commit is contained in:
parent
b4e29edaea
commit
11b2eff8c5
@ -397,7 +397,7 @@ class Account implements \ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function is_imap($try_connect=true)
|
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
|
return false; // no imap host or credentials
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user