Skip to content

Commit

Permalink
Fix loading quota on initial dynamic mailbox request
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Sep 3, 2014
1 parent 6577d19 commit c62f374
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions imp/lib/Ajax/Queue.php
Expand Up @@ -529,9 +529,13 @@ public function poll($mboxes, $explicit = false)
public function quota($mailbox, $force = true)
{
if (!is_null($this->_quota)) {
$this->_quota = is_null($mailbox)
? null
: array($mailbox, $force);
if (is_null($mailbox)) {
/* Disable quota output entirely. */
$this->_quota = null;
} elseif (!is_array($this->_quota) || !$this->_quota[1]) {
/* Don't change a previously issued force quota request. */
$this->_quota = array($mailbox, $force);
}
}
}

Expand Down

0 comments on commit c62f374

Please sign in to comment.