small optimization
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 18 Aug 2010 07:52:55 +0000 (01:52 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 18 Aug 2010 07:52:55 +0000 (01:52 -0600)
imp/lib/Views/ListMessages.php

index 02449ab..fdf16de 100644 (file)
@@ -307,8 +307,7 @@ class IMP_Views_ListMessages
             } catch (Horde_Imap_Client_Exception $e) {}
 
             if ($sortpref['by'] == Horde_Imap_Client::SORT_THREAD) {
-                $threadob = $imp_mailbox->getThreadOb();
-                $imp_thread = new IMP_Imap_Thread($threadob);
+                $imp_thread = new IMP_Imap_Thread($imp_mailbox->getThreadOb());
                 $md->thread = $imp_thread->getThreadTreeOb($msglist, $sortpref['dir']);
             }
         } else {