Explorar el Código

Fix a small bug when displaying less messages than the page max.

Thijs Kinkhorst hace 20 años
padre
commit
3c0b4d41b2
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      functions/mailbox_display.php

+ 2 - 1
functions/mailbox_display.php

@@ -899,6 +899,7 @@ function showMessagesForMailbox($imapConnection, &$aMailbox,$aProps, &$iError) {
              $aMailbox['PAGEOFFSET'] + $iLimit - 1 : $aMailbox['EXISTS'];
              $aMailbox['PAGEOFFSET'] + $iLimit - 1 : $aMailbox['EXISTS'];
 
 
     $iNumberOfMessages = $aMailbox['TOTAL'][$iSetIndx];
     $iNumberOfMessages = $aMailbox['TOTAL'][$iSetIndx];
+    $iEnd = min ( $iEnd, $iNumberOfMessages );
 
 
     $php_self = $PHP_SELF;
     $php_self = $PHP_SELF;
 
 
@@ -1377,4 +1378,4 @@ function attachSelectedMessages($imapConnection,$aMsgHeaders) {
     return $composesession;
     return $composesession;
 }
 }
 
 
-?>
+?>