Skip to content

Commit

Permalink
[jan] Fix deprecation warnings about each() with PHP 7.2+.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Schneider committed Feb 11, 2021
1 parent 1b346a4 commit 8d19f07
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
34 changes: 34 additions & 0 deletions doc/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,40 @@
[mms] Don't send empty text part if a message contains attachments.
[mms] Add button to allow folder tree to be rebuilt in smartmobile view.
[mms] Add option to poll mailbox for new mailbox when creating a mailbox (Request #13227).
6.2.28:
api: 6.2.0
state:
release: stable
api: stable
date: 2020-08-27
license:
identifier: GPL-2.0
uri: http://www.horde.org/licenses/gpl
notes: |
[jan] Fix deprecation warnings about each() with PHP 7.2+.
6.2.27:
api: 6.2.0
state:
release: stable
api: stable
date: 2020-08-27
license:
identifier: GPL-2.0
uri: http://www.horde.org/licenses/gpl
notes: |
[mjr] Fix attachments disappearing when forwarding in PHP 7.4 (Bug #15031).
[mjr] Prevent creating an empty To: header (Bug #15019).
6.2.26:
api: 6.2.0
state:
release: stable
api: stable
date: 2020-06-28
license:
identifier: GPL-2.0
uri: http://www.horde.org/licenses/gpl
notes: |
[mjr] Fix syntax error.
6.2.25:
api: 6.2.0
state:
Expand Down
3 changes: 1 addition & 2 deletions lib/Mailbox/List/Virtual.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ public function getIndicesOb()
$this->_buildMailbox();
$ob = new IMP_Indices();

reset($this->_sorted);
while (list($k, $v) = each($this->_sorted)) {
foreach ($this->_sorted as $k => $v) {
$ob->add($this->_sortedMbox[$k], $v);
}

Expand Down

0 comments on commit 8d19f07

Please sign in to comment.