From 60a619d63c6337d4811ddb83c09a01d1b6f8af7d Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 17 Aug 2010 00:25:55 -0600 Subject: [PATCH] Fix IMP_Indices::next() with multiple mailboxes --- imp/lib/Indices.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()]); } } -- 2.11.0