From b0a2e2631b118a953c459fe3e165ffe2494bbe53 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 9 Dec 2008 00:18:59 -0700 Subject: [PATCH] Fix threading when split across pages. --- imp/lib/IMAP/Thread.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imp/lib/IMAP/Thread.php b/imp/lib/IMAP/Thread.php index 14e73cf9a..90a82ca32 100644 --- a/imp/lib/IMAP/Thread.php +++ b/imp/lib/IMAP/Thread.php @@ -64,7 +64,11 @@ class IMP_IMAP_Thread /* If starting in the middle of a thread, the threadLevel tree needs * to be built from the base of the current thread. */ + $first = reset($indices); foreach ($t->getThread(reset($indices)) as $val) { + if ($first == $val) { + break; + } $thread_level[$t->getThreadIndent($val)] = $t->lastInLevel($val); } -- 2.11.0