Fix IMP_Indices::next() with multiple mailboxes
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 17 Aug 2010 06:25:55 +0000 (00:25 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 17 Aug 2010 06:26:08 +0000 (00:26 -0600)
imp/lib/Indices.php

index 4d04385..04c7ca8 100644 (file)
@@ -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()]);
         }
     }