fixed subject length problem
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 14 May 2000 17:31:55 +0000 (17:31 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 14 May 2000 17:31:55 +0000 (17:31 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@504 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
functions/imap_messages.php

index 70b5bf72cdeeb725654983bd79e8714b271c3469..0144686c1c2727b952e33cc6393235d733f0d366 100644 (file)
--- a/ChangeLog
+++ b/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
index dee22165663967b710938bf69051c4fdfc86923d..a48d4ea5194204693818634fa6b4e809e5a5ec06 100755 (executable)
 
          /** 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++;
          }