* EMailAdmin: used quota not shown in mail-account when called by an admin for an other user (only for managed mail-servers)

This commit is contained in:
Ralf Becker 2014-11-21 10:28:27 +00:00
parent 2795360ef3
commit f56857343d

View File

@ -271,7 +271,7 @@ class emailadmin_account implements ArrayAccess
if ($this->acc_imap_type != 'emailadmin_imap' && if ($this->acc_imap_type != 'emailadmin_imap' &&
// do NOT query IMAP server, if we are in forward-only delivery-mode, imap will NOT answer, as switched off for that account! // do NOT query IMAP server, if we are in forward-only delivery-mode, imap will NOT answer, as switched off for that account!
$this->params['deliveryMode'] != emailadmin_smtp::FORWARD_ONLY && $this->params['deliveryMode'] != emailadmin_smtp::FORWARD_ONLY &&
$this->imapServer() && is_a($this->imapServer, 'emailadmin_imap') && $this->imapServer($this->user) && is_a($this->imapServer, 'emailadmin_imap') &&
($data = $this->imapServer->getUserData($GLOBALS['egw']->accounts->id2name($this->user)))) ($data = $this->imapServer->getUserData($GLOBALS['egw']->accounts->id2name($this->user))))
{ {
$this->params = array_merge($this->params, $data); $this->params = array_merge($this->params, $data);