Skip to content

Commit

Permalink
Fix PHP warnings on dummy QUOTA responses in Courier-IMAP 4.17.1 (#6374)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Aug 6, 2018
1 parent 068b58f commit a411d8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CHANGELOG Roundcube Webmail
===========================

- Fix PHP warnings on dummy QUOTA responses in Courier-IMAP 4.17.1 (#6374)

RELEASE 1.3.7
-------------
- Fix PHP Warning: Use of undefined constant IDNA_DEFAULT on systems without php-intl (#6244)
Expand Down
5 changes: 5 additions & 0 deletions program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3126,6 +3126,11 @@ public function getQuota($mailbox = null)
list(, , $quota_root) = $this->tokenizeResponse($line, 3);

$quotas = $this->tokenizeResponse($line, 1);

if (empty($quotas)) {
continue;
}

foreach (array_chunk($quotas, 3) as $quota) {
list($type, $used, $total) = $quota;
$type = strtolower($type);
Expand Down

0 comments on commit a411d8c

Please sign in to comment.