Browse Source

Various fixes

philippe_mingo 23 years ago
parent
commit
bf7a149680
2 changed files with 8 additions and 2 deletions
  1. 3 0
      functions/imap_general.php
  2. 5 2
      functions/imap_mailbox.php

+ 3 - 0
functions/imap_general.php

@@ -1,6 +1,9 @@
 <?php
+
    /**
     **  imap.php
+    **  Copyright (c) 1999-2001 The Squirrelmail Development Team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.    
     **
     **  This implements all functions that do general imap functions.
     **

+ 5 - 2
functions/imap_mailbox.php

@@ -1,6 +1,9 @@
 <?php
+
    /**
     **  imap_mailbox.php
+    **  Copyright (c) 1999-2001 The Squirrelmail Development Team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.        
     **
     **  This impliments all functions that manipulate mailboxes
     **
@@ -44,8 +47,8 @@
              $read = sqimap_read_data($imap_stream, sqimap_session_id(), true, $response, $message);
       if ($recent) {
          for ($i=0; $i<count($read); $i++) {
-            if (strpos(strtolower($read[$i]), "recent")) {
-               $r = explode(" ", $read[$i]);
+            if (strpos(strtolower($read[$i]), 'recent')) {
+               $r = explode(' ', $read[$i]);
             }
          }
          return $r[1];