From 8686f4b270172bbd4a6b720e4068ed8f24dcd772 Mon Sep 17 00:00:00 2001 From: jmunro Date: Sun, 14 Jul 2002 01:48:59 +0000 Subject: [PATCH] E_ALL warning fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3090 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_parse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/imap_parse.php b/functions/imap_parse.php index a4b08fd0..47b3fdc0 100644 --- a/functions/imap_parse.php +++ b/functions/imap_parse.php @@ -204,7 +204,7 @@ function sqimap_parse_RFC822Header ($read, $hdr) { if (strlen(trim($hdr->subject)) == 0) { $hdr->subject = _("(no subject)"); } - if (strlen(trim($hdr->from)) == 0) { + if (!is_object($hdr->from) && strlen(trim($hdr->from)) == 0) { $hdr->from = _("(unknown sender)"); } if (strlen(trim($hdr->date)) == 0) { @@ -347,4 +347,4 @@ function sqimap_parse_address($address, $ar, $addr_ar = array(), $group = '') { } } -?> \ No newline at end of file +?> -- 2.25.1