Pārlūkot izejas kodu

Fixed a problem where unformatted-disp could go unset.

allah03 24 gadi atpakaļ
vecāks
revīzija
13639206d5
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2 4
      functions/imap_mailbox.php

+ 2 - 4
functions/imap_mailbox.php

@@ -159,10 +159,8 @@
             $mailbox = substr($mailbox, 0, strlen($mailbox) - 1);
          $boxes[$g]['unformatted'] = $mailbox;
          if (substr($mailbox,0,strlen($folder_prefix))==$folder_prefix) { 
-            $boxes[$g]['unformatted-disp'] = substr($mailbox, strlen($folder_prefix));
-         } else if (strtolower($mailbox) == "inbox") {
-            $boxes[$g]['unformatted-disp'] = $mailbox;
-         }
+            $mailbox = substr($mailbox, strlen($folder_prefix));
+         $boxes[$g]['unformatted-disp'] = $mailbox;
          $boxes[$g]['id'] = $g;
 
          if (isset($line[$g]))