Sfoglia il codice sorgente

fixed subject length problem

Luke Ehresman 25 anni fa
parent
commit
35a3f12bec
2 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 2 0
      ChangeLog
  2. 3 3
      functions/imap_messages.php

+ 2 - 0
ChangeLog

@@ -1,5 +1,7 @@
 Version 0.4 -- DEVELOPMENT
 --------------------------
+- If subject is blank, displays "(no subject)"
+- Fixed a few minor bugs and typos reported to list
 - Changed <? to <?php in a few places
 
 Version 0.4pre2 -- May 5, 2000

+ 3 - 3
functions/imap_messages.php

@@ -285,13 +285,13 @@
 
          /** ERROR CORRECTION **/
          else if (substr($read[$i], 0, 1) == ")") {
-            if ($header["SUBJECT"] == "")
+            if (strlen(trim($header["SUBJECT"])) == 0)
                 $header["SUBJECT"] = _("(no subject)");
 
-            if ($header["FROM"] == "")
+            if (strlen(trim($header["FROM"])) == 0)
                 $header["FROM"] = _("(unknown sender)");
 
-            if ($header["DATE"] == "")
+            if (strlen(trim($header["DATE"])) == 0)
                 $header["DATE"] = time();
             $i++;
          }