fixed warning
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 7 Oct 2002 17:09:36 +0000 (17:09 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 7 Oct 2002 17:09:36 +0000 (17:09 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3793 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/Message.class.php

index fdf01bad4efda14b97ea842e5507557cee4614c2..855cdaf722d5f275bd86642c18903bd869210f0f 100644 (file)
@@ -431,15 +431,12 @@ class Message {
         }
 
         if (count($arg_a) > 9) {
-            /* argument 1: date */
             $d = strtr($arg_a[0], array('  ' => ' '));
             $d = explode(' ', $d);
-            $hdr->date = getTimeStamp($d);
-
-            /* argument 2: subject */
-            $arg_a[1] = (!trim($arg_a[1]) ? _("(no subject)") : $arg_a[1]);
-            $hdr->subject = $arg_a[1];
+           if (!$arg_a[1]) $arg_1[1] = _("(no subject)");          
 
+            $hdr->date = getTimeStamp($d); /* argument 1: date */
+            $hdr->subject = $arg_a[1];     /* argument 2: subject */
             $hdr->from = $arg_a[2][0];     /* argument 3: from        */
             $hdr->sender = $arg_a[3][0];   /* argument 4: sender      */
             $hdr->replyto = $arg_a[4][0];  /* argument 5: reply-to    */