From: Michael M Slusarz Date: Tue, 17 Aug 2010 06:25:55 +0000 (-0600) Subject: Fix IMP_Indices::next() with multiple mailboxes X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=60a619d63c6337d4811ddb83c09a01d1b6f8af7d;p=horde.git Fix IMP_Indices::next() with multiple mailboxes --- diff --git a/imp/lib/Indices.php b/imp/lib/Indices.php index 4d0438513..04c7ca8c1 100644 --- a/imp/lib/Indices.php +++ b/imp/lib/Indices.php @@ -196,8 +196,8 @@ class IMP_Indices implements Iterator public function next() { if ((next($this->_indices[$this->key()]) === false) && - (($key = next($this->_indices)) !== false)) { - reset($this->_indices[$key]); + (next($this->_indices) !== false)) { + reset($this->_indices[$this->key()]); } }