mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Merge pull request #8 from filkaris/mail_account_bug
If Mail Account has empty password, it's still regarded as imap
This commit is contained in:
commit
c9822e3023
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user