Explorar o código

E_ALL warning fix

jmunro %!s(int64=23) %!d(string=hai) anos
pai
achega
e4137aaffa
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 = '') {
   }          
 
 }
-?>
+?>