From 76be2235371db13d7d9652bdc72fe2feccee2fdf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 11 Oct 2012 10:00:03 +0000 Subject: [PATCH] only ask quote, if connection succeeds --- emailadmin/inc/class.emailadmin_dovecot.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emailadmin/inc/class.emailadmin_dovecot.inc.php b/emailadmin/inc/class.emailadmin_dovecot.inc.php index ea781b7fef..a80462453c 100644 --- a/emailadmin/inc/class.emailadmin_dovecot.inc.php +++ b/emailadmin/inc/class.emailadmin_dovecot.inc.php @@ -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; }