From: Michael M Slusarz Date: Tue, 9 Dec 2008 07:18:59 +0000 (-0700) Subject: Fix threading when split across pages. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b0a2e2631b118a953c459fe3e165ffe2494bbe53;p=horde.git Fix threading when split across pages. --- 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); }