Bladeren bron

E_ALL warning fix

jmunro 23 jaren geleden
bovenliggende
commit
e4137aaffa
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      functions/imap_parse.php

+ 2 - 2
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 = '') {
   }          
 
 }
-?>
+?>