E_ALL warning fix
authorjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 14 Jul 2002 01:48:59 +0000 (01:48 +0000)
committerjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 14 Jul 2002 01:48:59 +0000 (01:48 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3090 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_parse.php

index a4b08fd065352a05d867a3b1b6870ac76475e513..47b3fdc0407208a058167dc349c7f24db128b3d8 100644 (file)
@@ -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
+?>