浏览代码

* Middle parameter wasn't used.

Tyler Akins 24 年之前
父节点
当前提交
ba0e8688fe
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      functions/imap_general.php
  2. 2 2
      src/left_main.php

+ 1 - 1
functions/imap_general.php

@@ -351,7 +351,7 @@
    /******************************************************************************
     **  Returns the number of unseen messages in this folder 
     ******************************************************************************/
-   function sqimap_unseen_messages ($imap_stream, &$num_unseen, $mailbox) {
+   function sqimap_unseen_messages ($imap_stream, $mailbox) {
       //fputs ($imap_stream, "a001 SEARCH UNSEEN NOT DELETED\r\n");
       fputs ($imap_stream, "a001 STATUS \"$mailbox\" (UNSEEN)\r\n");
       $read_ary = sqimap_read_data ($imap_stream, 'a001', true, $result, $message);

+ 2 - 2
src/left_main.php

@@ -32,10 +32,10 @@
       $mailboxURL = urlencode($real_box);
       
       $unseen = 0;
-      
+
       if (($unseen_notify == 2 && $real_box == "INBOX") ||
           $unseen_notify == 3) {
-         $unseen = sqimap_unseen_messages($imapConnection, $numUnseen, $real_box);
+         $unseen = sqimap_unseen_messages($imapConnection, $real_box);
          if ($unseen_type == 1 && $unseen > 0) {
             $unseen_string = "($unseen)";
             $unseen_found = true;