Browse Source

Fix PHP notice when property doesn't exist (#2863)

pdontthink 3 years ago
parent
commit
9d9bf9b608
1 changed files with 1 additions and 1 deletions
  1. 1 1
      class/deliver/Deliver.class.php

+ 1 - 1
class/deliver/Deliver.class.php

@@ -741,7 +741,7 @@ class Deliver {
             /* RFC 2298 */
             /* RFC 2298 */
             $header[] = 'Disposition-Notification-To: '.$dnt. $rn;
             $header[] = 'Disposition-Notification-To: '.$dnt. $rn;
         }
         }
-        if ($rfc822_header->dsn) {
+        if (isset($rfc822_header->dsn) && $rfc822_header->dsn) {
             $dsn = $rfc822_header->getAddr_s('dsn');
             $dsn = $rfc822_header->getAddr_s('dsn');
             $header[] = 'Return-Receipt-To: '.$dsn. $rn;
             $header[] = 'Return-Receipt-To: '.$dsn. $rn;
         }
         }