From: Michael M Slusarz Date: Thu, 19 Mar 2009 04:13:51 +0000 (+0000) Subject: Use correct sequence numbers consistently X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=207976ac09d4f8528b7fc89e42d085315fed0286;p=horde.git Use correct sequence numbers consistently --- diff --git a/imp/lib/Mailbox.php b/imp/lib/Mailbox.php index e870fb9dc..f6d9c6c70 100644 --- a/imp/lib/Mailbox.php +++ b/imp/lib/Mailbox.php @@ -207,7 +207,7 @@ class IMP_Mailbox $v['previewcut'] = $preview_info[$k]['IMPpreviewc']; } - $overview[$ids[$k]] = $v; + $overview[] = $v; } $uids[$mbox] = array_keys($fetch_res); diff --git a/imp/lib/Views/ListMessages.php b/imp/lib/Views/ListMessages.php index b470a4998..a5a6d3d16 100644 --- a/imp/lib/Views/ListMessages.php +++ b/imp/lib/Views/ListMessages.php @@ -278,12 +278,12 @@ class IMP_Views_ListMessages /* Display message information. */ reset($overview['overview']); - while (list($msgIndex, $ob) = each($overview['overview'])) { + while (list(,$ob) = each($overview['overview'])) { /* Initialize the header fields. */ $msg = array( 'imapuid' => $ob['uid'], 'menutype' => 'message', - 'rownum' => $msgIndex, + 'rownum' => $ob['seq'], 'view' => $ob['mailbox'], );