Browse Source

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

pdontthink 3 năm trước cách đây
mục cha
commit
9d9bf9b608
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      class/deliver/Deliver.class.php

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

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