From: stekkel Date: Mon, 7 Oct 2002 17:09:36 +0000 (+0000) Subject: fixed warning X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8750d90e100b162eaacc258e43730b94ac66341b;p=squirrelmail.git fixed warning git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3793 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/mime/Message.class.php b/class/mime/Message.class.php index fdf01bad..855cdaf7 100644 --- a/class/mime/Message.class.php +++ b/class/mime/Message.class.php @@ -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 */