瀏覽代碼

changed where a variable is registered in the session so heavy hard drive IO doesn't exist when sorting tons of e-mail headers.

gpadgham 25 年之前
父節點
當前提交
3030722d0e
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      functions/mailbox_display.php

+ 2 - 1
functions/mailbox_display.php

@@ -111,7 +111,7 @@
           ** 2 = Name (up)
           ** 2 = Name (up)
           ** 3 = Name (dn)
           ** 3 = Name (dn)
           **/
           **/
-
+         session_unregister("msgs");
          if (($sort == 0) || ($sort == 1))
          if (($sort == 0) || ($sort == 1))
             $msort = array_cleave ($msgs, "TIME_STAMP");
             $msort = array_cleave ($msgs, "TIME_STAMP");
          if (($sort == 2) || ($sort == 3))
          if (($sort == 2) || ($sort == 3))
@@ -127,6 +127,7 @@
          session_register("msort");
          session_register("msort");
       }
       }
       displayMessageArray($imapConnection, $numMessages, $startMessage, $msgs, $msort, $mailbox, $sort, $color,$show_num);
       displayMessageArray($imapConnection, $numMessages, $startMessage, $msgs, $msort, $mailbox, $sort, $color,$show_num);
+     session_register("msgs");
    }
    }
 
 
    // generic function to convert the msgs array into an HTML table
    // generic function to convert the msgs array into an HTML table