mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:28:45 +01:00
only ask quote, if connection succeeds
This commit is contained in:
parent
028908ba1f
commit
76be223537
@ -194,11 +194,10 @@ class emailadmin_dovecot extends defaultimap
|
||||
$this->disconnect();
|
||||
}
|
||||
|
||||
$this->openConnection(true);
|
||||
$userData = array();
|
||||
|
||||
// we are authenticated with master but for current user
|
||||
if(($quota = $this->getStorageQuotaRoot('INBOX')) && !PEAR::isError($quota))
|
||||
if($this->openConnection(true) === true && ($quota = $this->getStorageQuotaRoot('INBOX')) && !PEAR::isError($quota))
|
||||
{
|
||||
$userData['quotaLimit'] = $quota['QMAX'] / 1024;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user